Adding the trip filter section is necessary but sometimes you may feel the necessity to remove the trip filter section from the archive page of your site. If you came here to know how to remove the trip filter section then you came to the right place. We will share easy guidelines to remove the trip filter.

The trip filter is important if you have lots of packages. But sometimes to make your customers well known about your new trip packages, you will also need to remove them. Because by doing this, your customers will learn about the other packages of your site that they can avail in the future. Or, they can suggest to their friends and families.

Table of content:

  • What is the trip filter section?
  • How to remove the trip filter section from the archive page.

What is the trip filter section?

The trip filter section is a module for travel sites by that your customers can find their preferable trip packages by filtering out the packages with their necessary search variables. By using this filter, your customers can easily find their package in less time and effort.

Luckily, With WP Travel you can add this module to your site on any page you want. This module is necessary for those travel sites that offer lots of packages to their customers. Because it will be a hassle for your customers to find the desired trip packages from this huge amount of available trip packages. Moreover, your customers will get confused because of lots of options.

But, sometimes if you feel the need to remove the trip filter section from the archive page then you can also do that with the WP Travel plugin. Besides, you can do it within few seconds by adding code in your functions.php file. Let’s find out how to do it in less than a few seconds.

Remove trip filter section from the archive page

If you want to remove the filter section which is available on the archive page, the WP Travel plugin provides the feature regarding removing the trip filter section available on the itinerary page using a filter hook. So, please add the following given code in the functions.php file of your child theme.

add_action( 'init', function() {
	remove_action( 'wp_travel_before_main_content', 'wptravel_archive_toolbar' );
} );

Also, for detail assistance regarding creating child theme, please refer link.

Before adding above mentioned coding in your function.php file, your archive page will look like this.

Remove the trip filter section

The trip filter section will be removed after adding the coding in your function.php file. Here, is the picture of it.

Remove the trip filter section

If you have any queries, please submit it to our Contact page.