Support Queries

Under this section, we will list the queries of wp travel plugin along with their answers. This section is specially created to answer the query that people frequently ask.

How to remove last vertical line from Itineraries? #

To remove the vertical line from the itineraries displayed in trip outline tab use below given CSS.

For this go to Admin Panel > Appearance > Customize > Additional CSS and paste below given CSS:

CSS to remove the vertical line :

.timeline-contents .col:last-of-type .tc-content, .timeline-contents .col:last-of-type .tc-heading {
    border-right-color: transparent;
    border-left-color: transparent;
}

How to display your site same as the plugin demo? #

We have built the demo of the plugin using the Travel Joy Pro theme and all of the layout that is in the WP Travel plugin demo is from the Travel Joy Pro theme.

So if you want your site to look like in the demo of WP Travel plugin then please use Travel Joy Pro theme.

Link of Travel Joy Pro: https://wpdemo.wensolutions.com/travel-joy-pro/

Also if you have any confusion while setting up any of the section then please refer to the theme documentation: https://wensolutions.com/docs-category/travel-joy-pro/

How to display the single trips in post/page using shortcode? #

You can display the single trips in post/page using shortcode and for this please use the below-given shortcode:

[WP_TRAVEL_ITINERARIES itinerary_id=8852]

Here replace the id with the id of your trip.

Note: Please paste the shortcode in Text mode of the of the content editor.

For more detail regarding the shortcode, please refer to our documentation.

How to add your local currency? #

You can add your desired currency in the plugin using the filter provided by the plugin itself.

For this, you need to activate the child theme and after the activation of a child, theme add the below-given code in your child theme’s functions.php file.

/**
 * Wp_travel_custom_add_currency_val
 */
function wp_travel_custom_add_currency_val( $currency ) {

    $currency['ZMW'] = 'Zambian kwacha';

    return $currency;

}
add_filter( 'wp_travel_currencies', 'wp_travel_custom_add_currency_val' );

/**
 * Wp_travel_custom_add_currency_symbol
 */
function wp_travel_custom_add_currency_symbol( $currency_symbol ) {

    $currency_symbol['ZMW'] = 'ZMW';

    return $currency_symbol;
}

add_filter( 'wp_travel_currency_symbols', 'wp_travel_custom_add_currency_symbol' );

Please refer to our Knowledge Base for more detail regarding adding a new currency.

How to change display pattern of the price? #

If you want to change the display pattern of the price then please add below given code in your child theme functions.php file.

function wp_travel_customize_price_display( $s, $c, $d ) {
  global $wp_travel_itinerary;
  if ( $wp_travel_itinerary->is_sale_enabled() ) {
    return $s;
  }
  return sprintf( esc_html__('Starting from %1s %2s', 'wp-travel' ), $d, $c );
}
add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 );


function wp_travel_customize_sale_price_display( $s, $c, $d ) {
  return  sprintf( esc_html__('Starting from %1s %2s', 'wp-travel' ), $d, $c );
}
add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );

Default pattern:

Pattern after adding code.

You can change the text and placement of currency from the code provided above.

How to change default country in form field? #

If you would like to change the default country in the final booking form field you can add the below-given code in your child theme functions.php file. To know how to create the child theme please refer to the below-given link: 

Child Theme  

After creating the child theme in your child theme functions.php file add below-given code.

function wp_travel_customize_booking_form($fields) {

	$fields['traveller_fields']['country']['default'] = 'NL';
	$fields['billing_fields']['country']['default'] = 'NL';
 
	return $fields;
 }
 
 add_filter( 'wp_travel_checkout_fields', 'wp_travel_customize_booking_form', 99 );

You need to replace ‘NL‘ country code with your country code in the above-given code.

For more detail regarding changing the default country in the form field, please free to our Knowledge Base.

How to remove the filter section from the trip archive page? #

To remove the filter you need to add the small code snippet in your child themes functions, PHP file. To know how you can create and activate the child theme, please refer to the below-given link: https://wptravel.io/how-to-create-a-child-theme/ After activating the child theme in your child theme’s functions.php file add the below-given code:

remove_action( 'wp_travel_before_main_content', 'wp_travel_archive_toolbar' );

Screenshot:
Before using the hook:

After using the hook:

For more detail regarding removing the trip filter section from the archive page, please free to our Knowledge Base.