Sidebar hook? WPGeodirectory 2

This topic contains 5 replies, has 4 voices, and was last updated by  Alex Rollin 10 months, 1 week ago.

  • Author
  • #505129

    Full Member
    Post count: 121


    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.



    Post count: 16516

    Hi Anders,

    Thanks for your post. You can avoid the hassle by just using this plugin . Let us know how it goes.


    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.



    Naveen Giri
    Post count: 1559

    Hi @anders

    this is the hook, you can customise.

    for any further customisation you can take help of GD Experts.



    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.



    Alex Rollin
    Post count: 27815


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

The topic ‘Sidebar hook? WPGeodirectory 2’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.