Search Documentation

WP Travel User Documentation

  1. Home
  2. Docs
  3. WP Travel User Documentation
  4. Support Queries
  5. How to remove the filter section from the trip archive page?

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.

Was this article helpful to you? Yes No

How can we help?