Sidebar hook? WPGeodirectory 2

This topic contains 5 replies, has 4 voices, and was last updated by  Alex Rollin 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #505129

    anders
    Full Member
    Post count: 121

    Hi,

    Could you please point me to how I can access the GD Sidebar area through code?
    Is there a hook where I can setup my own condition for when to include certain links.

    Right now I’m using widget logic on a navigation menu widget, is_page(‘add-listing’).
    This is working fine however I need further control over what/when is displayed in the sidebar of add listings page.

    Thanks!

    #505170

    Kor
    Moderator
    Post count: 16516

    Hi Anders,

    Thanks for your post. You can avoid the hassle by just using this plugin https://jetpack.com/support/widget-visibility/ . Let us know how it goes.

    #505194

    anders
    Full Member
    Post count: 121

    Thank you Kor,

    Right now I´m using Widget Logic -plugin which looks like something similar.
    This works fine for showing/hiding widgets but I need to insert a small custom code so that I can display certain links based on some conditions. So I would like to have access to the widget area from my functions file in our child theme for directory starter theme.

    Thanks!

    #505339

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @anders

    this is the hook, you can customise.

    https://github.com/AyeCode/geodirectory/blob/master/includes/core-functions.php#L716

    for any further customisation you can take help of GD Experts.
    https://geodirectoryexperts.com

    Thanks

    #505709

    anders
    Full Member
    Post count: 121

    Thank you Naveen Giri!

    I never sorted out how to best use that filter from our child theme, however I decided to create a new widget instead where I can control things fine for our purpose.

    Thanks!

    #505755

    Alex Rollin
    Moderator
    Post count: 27815

    Great!

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

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

Open Support Ticket