Breadcrumbs

This topic contains 11 replies, has 4 voices, and was last updated by  Giri 8 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #328652

    Elijah Lokvkoff
    Free User
    Post count: 138

    Sorry if this has been asked before.
    1.
    I’m setting up a website and business directory is just a part of it. So the homepage in Settings > Reading is set to the front page of my website.
    I think this is the reason why Home in GD permalinks points to my website homepage (even though Geodirectory > Permalinks > GD Homepage is set to the actual gd homepage)

    This is what I’ve found while searching the forum:
    “You cannot use a different homepage at WP reading and GD permalinks.”
    https://wpgeodirectory.com/support/topic/map-not-showing-5/#post-160984

    Do I understand it correctly – there is no way to have my website homepage set to the page of my choice (not gd) and still have permlainks work correctly for the directory.

    If this is not doable it pretty much kills my project and I won’t be able to use GD, even though I like it so far….

    2.
    Another thing that I can’t wrap my head around. Please take a look at the screenhoot: http://imgur.com/a/atBCL

    When I click on Select Files button, it opens a dialog to upload files from my computer. I was hoping to be able to use images from my wordpress media library as a featured image, but it seems that it is not possible?

    Thank you.

    #328719

    Kor
    Moderator
    Post count: 16516

    Hi there,

    I’ll try to answer your questions accordingly.

    1. Kindly refer to this section of the documentation for more info https://wpgeodirectory.com/docs/basic-installation/#home

    2. Unfortunately, you can’t do that because the images are uploaded directly from your members and they are not allowed to use the WordPress Media if it’s a non-admin. But I’ll check with a developer and see why an admin can’t access to the WordPress media files.

    Let us know how it goes.

    Thanks!

    #329253

    Paolo
    Site Admin
    Post count: 31211
    #329254

    Elijah Lokvkoff
    Free User
    Post count: 138

    Kor, you either did not read my question or I don’t understand the explanation 🙂
    It is fairly important issue for us.

    I need to do 2 things:
    1. To have my homepage set in Settings > Reading to the page of my choice. (NOT GD home)
    2. To have breadcrumbs work correctly in GD directory, so the Home in gd breadcrumbs will be connected to the GD Home page.

    ************

    Please let me know if ti is doable, since the documentation is a bit ambiguous imho.
    On one hand the documentation says “If you want to use one of your normal WordPress pages for the homepage of your website, then select the GD Location page here.”

    On the other one the GD prompt says below the GD Homepage field: “Select the page to use for the GD homepage (you must also set this page in Settings>Reading>Front page for it to work)”

    Thank you!

    #329336

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    1) Just create a custom page and use it as home in reading settings.

    2) if your home is not the GD home, the Home link of the breadcrumb will point CORRECTLY to the website home page. Not to the GD Home page, that in that case it shouldn’t even be used.

    Thanks

    #329368

    Elijah Lokvkoff
    Free User
    Post count: 138

    OK, probably it should be considered as a feature request….

    The logic I think is fairly simple – some people would like to have business directory as part of monetization of their site. it means they will have business directory as just one of many tools.
    When you route people to business directory, you want them to stay there – hence the request in this scenario for ‘home’ in breadcrumbs to be pointing to a specific gd page, even though the main website homepage is set to something else.

    It is probably easier said then done, but then again – it is just a feedback that you guys may consider at some point.

    Cheers.

    #329373

    Elijah Lokvkoff
    Free User
    Post count: 138

    just to illustrate the point, please see the screenshot: http://imgur.com/a/eKG8T

    In search results the only available option in breadcrumbs is Home. And in this configuration it will take you to the website homepage, while I really would like clients to stay in business directory. And it is a bit confusing for them too (we are talking about the scenario when website homepage is not set to gd home).

    Cheers!
    Elijah

    #329375

    Elijah Lokvkoff
    Free User
    Post count: 138

    Actually, I think there is an easy solution for this, simply to remove Home from the breadcrumbs display, like this:

    
    
    #breadcrumbs > li > a:first-child {
        display: none !important;
    }

    The only problem is I have no idea how to remove the preceeding ” > ” sign (as in screenshot)

    View post on imgur.com

    (other than that it does the trick nicely)

    Just sharing.

    #329792

    Paolo
    Site Admin
    Post count: 31211

    I asked to the developers to let us know if there is a workaround.

    Thanks for your patience,

    #329794

    Giri
    Expired Member
    Post count: 3155

    Hi,

    You can modify the first item with a filter.

    If you don’t want home link use this code

    
    
    function modify_breadcrumb_first_item($html) {
        return '';
    }
    add_filter('geodir_breadcrumb_first_link', 'modify_breadcrumb_first_item');

    If you would like to modify the link to point to something else use this code instead

    
    
    function modify_breadcrumb_first_item($html) {
        return '<a href="' . home_url() . '/directory/">' . __( 'Home', 'geodirectory' ) . '</a>';
    }
    add_filter('geodir_breadcrumb_first_link', 'modify_breadcrumb_first_item');

    Replace directory with your endpoint.

    Please use code snippets plugin to paste those code. https://wordpress.org/plugins/code-snippets/

    You can also use your child theme’s functions.php file.

    Thanks

    #329976

    Elijah Lokvkoff
    Free User
    Post count: 138

    Incredible, thank you guys, I didn’t expect you to go that far. Much appreciated.

    #330554

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount