Repeat Detail Page tab head

This topic contains 4 replies, has 4 voices, and was last updated by  Giri 6 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #387049

    James Gird
    Expired Member
    Post count: 33

    Hi

    Is is possible to repeat the gedir-tab-head below the listing content area.

    Regards
    James

    #387051

    Kor
    Moderator
    Post count: 16516

    Hi James,

    Could you elaborate a little bit more or provide some screenshots? Not sure what you mean by this.

    Thanks!

    #387054

    James Gird
    Expired Member
    Post count: 33

    Hi Kor

    On the listing details page I would like to repeat the tab heading area (class id geodir-tab-head) again below the listing tabs contented areas.

    So when a listing is long like this one, a person don’t have to scroll back to the top to click on another tab to switch between PROFILE / MORE INFO / PHOTOS / MAP / REVIEWS, as the tab header is repeated there.

    See attachment. If the area marked with the green arrow can be repeated where the red arrow indicates.

    Live page: http://www.kimberley.co.za/places/kimberley/guesthouse/new-rush-guesthouse/

    #387095

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    this can probably be done via hooks. i asked to the developers to check and let us know the best way to do this.

    They’ll let you know asap.

    Thanks

    #387344

    Giri
    Expired Member
    Post count: 3155

    Hi james,

    This code might help you to add the tabs at the bottom. But you need custom styles to change the styles bottom up and and js code to function properly. For that you need to hire a developer.

    
    
    add_action('geodir_details_main_content', 'gd_tabs_at_detail_bottom', 70);
    function gd_tabs_at_detail_bottom() {
    
        $arr_detail_page_tabs = geodir_detail_page_tabs_list();
        ?>
        <dl class="geodir-tab-head">
        <?php
        $tab_list = ( get_option( 'geodir_disable_tabs', false ) ) ? true : false;
        foreach ( $arr_detail_page_tabs as $tab_index => $detail_page_tab ) {
            if ( $detail_page_tab['is_display'] ) {
    
                if ( ! $tab_list ) {
                    ?>
                    <dt></dt> <!-- added to comply with validation -->
                    <dd <?php if ( $detail_page_tab['is_active_tab'] ){ ?>class="geodir-tab-active"<?php } ?> ><a
                            data-tab="#<?php echo $tab_index; ?>"
                            data-status="enable"><?php _e( $detail_page_tab['heading_text'], 'geodirectory' ); ?></a>
                    </dd>
                    <?php
                }
            } // end of if for is_display
        }// end of foreach
        ?>
        </dl>
        <?php
    }
Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket