Homepage search box item order

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme April 15, 2020
Login to reply
N'goran AHOUA
4 years ago

Ok great!!! thank you.

Kelly R Support Agent
4 years ago

Because you did not add cruise type and cruise lines in backend.

Please add them.

Best regards,

N'goran AHOUA
4 years ago

Hi!

Ok great!!!
Thank you! 

One question about this Homepage search:
Why in my site i don't have the "What" section element in Cruise (i don't have CRUISE TYPES and CRUISE LINES) ?

Take a look to attachment it's explain more what i'm talking about

Best regards,

Kelly R Support Agent
4 years ago

Hi,

Please find following code in /wp-content/themes/Travelo/templates/template-home.php file.

<ul class="search-tabs clearfix">

       <?php if ( in_array('acc', $enabled_features) ) : ?>
        <li <?php if ( $enabled_features[0] == 'acc' ) echo 'class="active"' ?> ><a href="#hotels-tab" data-toggle="tab"><?php _e( 'HOTELS', 'trav' ) ?></a></li>
       <?php endif; ?>
       <?php if ( in_array('tour', $enabled_features) ) : ?>
        <li <?php if ( $enabled_features[0] == 'tour' ) echo 'class="active"' ?> ><a href="#tours-tab" data-toggle="tab"><?php _e( 'TOURS', 'trav' ) ?></a></li>
       <?php endif; ?>
       <?php if ( in_array('car', $enabled_features) ) : ?>
        <li <?php if ( $enabled_features[0] == 'car' ) echo 'class="active"' ?> ><a href="#cars-tab" data-toggle="tab"><?php _e( 'CARS', 'trav' ) ?></a></li>
       <?php endif; ?>
       <?php if ( in_array('cruise', $enabled_features) ) : ?>
        <li <?php if ( $enabled_features[0] == 'cruise' ) echo 'class="active"' ?> ><a href="#cruises-tab" data-toggle="tab"><?php _e( 'CRUISES', 'trav' ) ?></a></li>
       <?php endif; ?>
       <?php if ( in_array('flight', $enabled_features) ) : ?>
        <li <?php if ( $enabled_features[0] == 'flight' ) echo 'class="active"' ?> ><a href="#flights-tab" data-toggle="tab"><?php _e( 'FLIGHTS', 'trav' ) ?></a></li>
       <?php endif; ?>
      </ul>

You can change order by changing the code.

Best regards,

N'goran AHOUA
4 years ago

Hello,

When choose homepage template 6 after the slider you have a search-box-wrapper with item ordered as follows: HOTELS - TOURS - CRUISES - FLIGHTS
How to change this order ?

Best regards,