reorder search services and change word

Pending
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme November 22, 2020
Login to reply
Kelly R Support Agent
3 years ago

Please find following code in /wp-content/themes/Travelo/inc/functions/shortcode/shortcodes.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"><i class="soap-icon-hotel"></i> <span><?php _e( 'HOTELS', 'trav' ) ?></span></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"><i class="soap-icon-beach"></i> <span><?php _e( 'TOURS', 'trav' ) ?></span></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"><i class="soap-icon-car"></i> <span><?php _e( 'CARS', 'trav' ) ?></span></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"><i class="soap-icon-cruise"></i> <span><?php _e( 'CRUISE', 'trav' ) ?></span></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"><i class="soap-icon-plane"></i> <span><?php _e( 'FLIGHT', 'trav' ) ?></span></a></li>
      <?php endif; ?>
     </ul>
     <div class="visible-mobile">
     <ul id="mobile-search-tabs" 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>
    </div>

And edit it to change the order of the tab.

And you can change Kids to childs in the file.

Please find following code.

<label><?php _e( 'Kids','trav' ); ?></label>

Best regards,

Best regards,

Mustapha Haouili
3 years ago

Hi,

in Home page i have search box for all services how i can reorder it.

i want first flight, Hotel, Tour, Car

and how i change the word "Kids" to "childs"


Best Regards

Mustapha