GeoDirectory text- /widget area below Detail Page

This topic contains 9 replies, has 3 voices, and was last updated by  pedstone 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #406122

    pedstone
    Lifetime Member
    Post count: 102

    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

    #406166

    Guust
    Moderator
    Post count: 29970

    Enable the GD Detail Bottom section, and then add a text widget to that section:
    https://wpgeodirectory.com/docs/layout/#directory

    Thanks

    #406180

    pedstone
    Lifetime Member
    Post count: 102

    Hi Guust

    thanks for your reply.

    I have already done that, but I was wondering if I could add a widget directly below the details.

    #406202

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    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

    #406218

    Guust
    Moderator
    Post count: 29970

    You 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

    #406310

    pedstone
    Lifetime Member
    Post count: 102

    Hi 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

    #406334

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    I think Guust’s recommendation would work best for that purpose.

    #409186

    pedstone
    Lifetime Member
    Post count: 102

    Hi 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

    #409236

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    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/

    #410004

    pedstone
    Lifetime Member
    Post count: 102

    Hi 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

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

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

Open Support Ticket