Alternative Root Page

This topic contains 7 replies, has 4 voices, and was last updated by  Bobby 10 years, 3 months ago.

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #11794

    Bobby
    Expired Member
    Post count: 17

    Hi there,

    Hopefully this makes sense – I installed GeoDirectory on our site, but the directory has its own main page (“/directory” other than the site’s homepage. However, for purposes of the breadcrumbs and other items, is it possible to somehow have the plugin recognize the ‘/directory’ page as the root page, rather than the site’s main homepage?

    Thanks,

    Bobby

    #11808

    Guust
    Moderator
    Post count: 29970

    So your main site is not a WordPress site, and you have installed GD in a separate WordPress installation at /directory. Is that what you mean?

    Because if you use GD not as your homepage, your Home breadcrumb should go to the “root” page as standard.

    Can you clarify? A URL might help.

    #11877

    Simone
    Expired Member
    Post count: 3515

    I think he wants to use the GD in a page which is not the homepage, so for example in /directory. In this page he would have the “standard” GD homepage with map etc, and GD allows to use this page only in the homepage of the website (root). I’m in the same situation, and I’ve set up a page “forcing” the widget to show up only on the /directory page, but I haven’t considered the breadcrumbs. I will see what I can do, and keep you updated

    #11878

    Guust
    Moderator
    Post count: 29970

    But that is standard, is it not?
    See http://goldroo.net/directory/

    Settings:
    GD > Design > Home > Geodirectory home page > No
    GD > Permalinks > Location url prefix > Directory

    The breadcrumbs automatically work correctly.
    Bobby wants the breadcrumbs NOT to link to the site’s home page.

    Bobby, why do you want a homepage you do not intend to link to at all?
    Am I misunderstanding something?

    #11882

    Simone
    Expired Member
    Post count: 3515

    maybe because he wants to keep things separated (my guess), it’s like having a “blog” on the homepage/root and the directory in the /directory, so if someone will visit the directory and click home (in the breadcrumbs) he will be redirected to the home of the directory rather than the home of the blog

    edit: hey Guust it’s like I’m talking alone here 😛

    #11888

    John Allsopp
    Expired Member
    Post count: 399

    Maybe you could make use of this filter to put in your new URL

    apply_filters('geodir_breadcrumb_first_link','<a href="'.get_option('home').'">'.__('Home',GEODIRECTORY_TEXTDOMAIN).'</a>').'
    #11904

    Bobby
    Expired Member
    Post count: 17

    Thanks Simone, that’s exactly what I’m going after here. Another reason is that the nav item for the Directory should remain “highlighted” (so to speak) on all GeoDirectory pages so the user knows they are still on the directory portion of the website.

    John – thanks, I’ll try the filter out and see if that does the trick.

    #11913

    Bobby
    Expired Member
    Post count: 17

    I solved the nav issue by adding this function in header.php to add the highlight styling on GD pages:

    
    
    if(geodir_is_geodir_page() ){
    echo('<style>nav li:nth-of-type(3) a {border-bottom: 5px solid #ff7900;}</style>');
    }
Viewing 8 posts - 1 through 8 (of 8 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