Opens an automatic tab in Travel Guide module

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme May 25, 2019
Login to reply
Kelly R Support Agent
5 years ago

Hi,

Please find following code in /single-travel_guide.php file and edit it to activate another tab in travel guide.

<ul class="tabs full-width">

       <?php
        $active_class = ' class="active"';
        if ( ! empty( $g_info ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-info" data-toggle="tab">' . __( 'General Information', 'trav' ) . '</a></li>';
         $active_class = '';
        }
        if ( ! empty( $sports ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-sports" data-toggle="tab">' . __( 'Sports', 'trav' ) . '</a></li>';
         $active_class = '';
        }
        if ( ! empty( $culture ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-culture-history" data-toggle="tab">' . __( 'Culture and History', 'trav' ) . '</a></li>';
         $active_class = '';
        }
        if ( ! empty( $nightlife ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-nightlife" data-toggle="tab">' . __( 'Nightlife', 'trav' ) . '</a></li>';
         $active_class = '';
        }
        if ( ! empty( $acc_list ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-hotels" data-toggle="tab">' . __( 'Accommodations', 'trav' ) . '</a></li>';
         $active_class = '';
        }
        if ( ! empty( $tour_list ) ) {
         echo '<li' . $active_class . '><a href="#travel-guide-tours" data-toggle="tab">' . __( 'Tours', 'trav' ) . '</a></li>';
         $active_class = '';
        }
       ?>
       </ul>

Regards, C-Themes

Nitzan Ginsberg
5 years ago

Hello,

hope you are well,

Is there any way that will be automatically opened tab that I choose in the Travel Guide ?  Or any way to change it in the single-travel_guide.php ?

thanks

Nitzan