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 TicketTagged: sidebar
-
AuthorPosts
-
December 1, 2018 at 12:00 am #456608
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 customizationsDecember 1, 2018 at 3:28 am #456629You should have a GD Sidebar.
Have a look at the widget options when adding a GD widget.Thanks
December 1, 2018 at 12:09 pm #456660That 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?
December 1, 2018 at 12:57 pm #456667I am not familiar with that plugin, but this plugin may work: https://wpgeodirectory.com/docs/useful-plugins/#logic
Thanks
December 1, 2018 at 6:50 pm #456716All 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.
December 7, 2018 at 5:42 pm #457542I 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?
December 7, 2018 at 11:39 pm #457591we have several examples here:
https://wpgeodirectory.com/docs/useful-plugins/#logicYou can also use these examples: https://codex.wordpress.org/Conditional_Tags (linked from that page)
December 8, 2018 at 7:40 pm #457697I 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.December 9, 2018 at 1:48 am #457718is_singular( ‘gd_event’ )
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket