sidebars V2

This topic contains 8 replies, has 3 voices, and was last updated by  Alex Rollin 6 years ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #456608

    Carin Handsun
    Expired Member
    Post count: 178

    We used the Modern theme in V1, but since its not getting released soon, we are modifying the Starter Theme V2, I just saw that there are no widget sidebars for Details page, Listing , etc like in the Modern Theme, can this be fixed by using a sidebar plugin like Content Aware Sidebars?
    Is the Supreme theme setup for all the sidebars, I might need to switch to that one before we get in too deep into customizations

    #456629

    Guust
    Moderator
    Post count: 29970

    You should have a GD Sidebar.
    Have a look at the widget options when adding a GD widget.

    Thanks

    #456660

    Carin Handsun
    Expired Member
    Post count: 178

    That is good for GD widgets, but we need to add other types of widgets too, which do not have the geodirectory page options in them, is this the new technique in V2, would you suggest using Content Aware Sidebars to be able to use any widget on any GD page?

    #456667

    Guust
    Moderator
    Post count: 29970

    I am not familiar with that plugin, but this plugin may work: https://wpgeodirectory.com/docs/useful-plugins/#logic

    Thanks

    #456716

    Alex Rollin
    Moderator
    Post count: 27815

    All GDV2 widgets have built in logic options to allow targeting to GD pages.

    Then widget logic can be used for non-GD widgets. We use it on our own sites and when we do testing. It is a simple plugin that uses logic built into WP, it is free, and we have been recommending it for some time.

    I have used many sidebar manager plugins and I do not feel they are an appropriate solution for page-template/sidebar/widget management for V2. I have not seen one yet that I can really recommend and even if they work (always only partially) I think it is more reasonable to use widget logic or create a few additional page templates for a theme than deal with the headaches of plugin derived sidebar behavior.

    #457542

    Carin Handsun
    Expired Member
    Post count: 178

    I added widget logic and made sure my Event Detail page is a GD Page, I can see a regular text widget when I place in GD sidebar, but I want to restrict to just the Detail Page I tried is_page(‘event-details’) and no good, the instructions on their site are pretty limited.

    They do say If your theme calls the sidebar after the loop you should find that the wp_reset_query option fixes things. I am using Directory Starter theme. Any advice?

    #457591

    Alex Rollin
    Moderator
    Post count: 27815

    we have several examples here:
    https://wpgeodirectory.com/docs/useful-plugins/#logic

    You can also use these examples: https://codex.wordpress.org/Conditional_Tags (linked from that page)

    #457697

    Carin Handsun
    Expired Member
    Post count: 178

    I made a custom page for Event Details, made sure it is set a GD page, when I add my text widget to GD sidebar it shows on all my GD pages, but if I try to restrict the Text Widget to Event Details page with widget logic then I get nothing. I reviewed the few examples on the page you sent me and tried:

    geodir_is_page ( ‘event-details’ ), I also tried is_page ( ‘event-details’ ) , geodir_is_page ( 8538 ) is_page ( 8538 ) and page ids with quotes too just in case, It would seem that this would trigger the widget to show on posts coming from the Event Details page (my custom page for Event Details) but it does not.

    I guess what I need to know from you is do I have to add more queries like the categories to force the widget to display. I wanted to start with the basics then work my way into deeper pages, but I cant even get it to display on the basic Details page.

    (from codes)
    is_page()
    When any Page is being displayed.
    is_page( 42 )
    When Page 42 (ID) is being displayed.
    is_page( ‘About Me And Joe’ )
    When the Page with a post_title of “About Me And Joe” is being displayed.
    is_page( ‘about-me’ )
    When the Page with a post_name (slug) of “about-me” is being displayed.

    #457718

    Alex Rollin
    Moderator
    Post count: 27815

    is_singular( ‘gd_event’ )

Viewing 9 posts - 1 through 9 (of 9 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