GeoDirectory text- /widget area below Detail Page
This topic contains 9 replies, has 3 voices, and was last updated by pedstone 7 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: detail page bottom
-
AuthorPosts
-
November 20, 2017 at 5:04 pm #406122
Hi GD Team
This question might be a bit off topic, but maybe you have a hint of how one could add a textor widget below the the paging navigation on the GD detail pages, like marked on the attached image?
Any hint is very welcome
November 21, 2017 at 2:03 am #406166Enable the GD Detail Bottom section, and then add a text widget to that section:
https://wpgeodirectory.com/docs/layout/#directoryThanks
November 21, 2017 at 5:35 am #406180Hi Guust
thanks for your reply.
I have already done that, but I was wondering if I could add a widget directly below the details.
November 21, 2017 at 9:08 am #406202Hello!
Do you mean you want to place a text widget inside the profile tab? That brings up a lot of questions, and you might want to tell us more about what you are trying to do.
If I understand you correctly, that would be a customization, but we have some documents to get you started.
https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/
https://wpgeodirectory.com/support/topic/re-order-tabs-in-events-detail-page/
Let us know more about what you are trying to do
November 21, 2017 at 10:23 am #406218You can move the Detail Bottom section to sit below the details of the listing, instead of below the content and the sidebar, by making a small adjustment to the template: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/
Thanks
November 21, 2017 at 8:46 pm #406310Hi Guust and Alex
Thanks for the hints, I will look into the details.
I made a better Pic of what I wanted to achieve that should explain it better than the previous picture.
I think it could be very useful to use this area for many purposes, like placing banners, ads and other general infos.
Like in this particular case, I would be able to add some booking or travel info’s
November 22, 2017 at 6:26 am #406334Hello!
I think Guust’s recommendation would work best for that purpose.
December 12, 2017 at 8:03 am #409186Hi Guust and Alex
I had time to look a bit more in detail into your hints and tried out the following but without the desired result:
In the child theme I registered a new sidebar:
register_sidebar( array( 'name' => 'GD Detail Below Content', 'id' => 'gd-detail-below-content', 'description' => '', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', ) );
It also shows nicely in the admin widget area, so it seems to work.
then I added the following to the listing-detail.php:
if ( is_active_sidebar( 'gd-detail-below-content' ) ) : dynamic_sidebar( 'gd-detail-below-content' ); endif;
after:
// this call the main page content global $preview; if (have_posts() && !$preview) { the_post(); global $post, $post_images; /** * Calls the details page main content on the details template page. * * @since 1.1.0 * @param object $post The current post object. */ do_action('geodir_details_main_content', $post);
But nothing showed up on the page and I wonder where i went wrong.
Did I modify the wrong php file or should I have called that sidebar in a different way?
I’m definitely not such a php guru like you guys 🙂
Any hints are very appreciated
December 12, 2017 at 5:35 pm #409236Hello!
This is a customization outside of what we can help you with here in support.
It might be easier to do one of these:
1# Add a new html area and allow shortcodes in the area. Make the field “admin only” so that end users don’t see the field. Then do some simpler PHP to load that field outside of the tabs. https://wpgeodirectory.com/support/topic/adding-a-button-to-listings/#post-35225
2# Add a new widget area this way: https://wpgeodirectory.com/support/topic/new-widget-area-on-detail-page-below-tabbed-section/
You can also make a post in our jobs forum or go directory to GD experts with https://geodirectoryexperts.com/
December 19, 2017 at 11:39 am #410004Hi Alex
thanks for the helpful reply. specially # 2
As it looks like other people would like to have this option too, maybe it might be an idea for a feature in a future release.
It would be just great to choose this in the Design options, drag the widgets into the new area and bam there it is 🙂
Happy Christmas and a great new year to you and the team
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket