WP Travel plugin has come up with the option to remove the Archive Title from the Archive page, you can follow these options based on different scenarios:

Option 1: Remove Both the Archive Title and the Description

Default Title of the Archive Page

Default archive page with "Archives: Trips" as title
  • Go to WP Travel Settings:
    • Navigate to your WordPress Admin Panel.
    • Go to WP Travel > Settings > General.
  • Hide the Plugin Archive Page Title:
    • Find the “Archive Page Title” option.
    • Enable the “Hide Plugin Archive Page Title” setting. This will remove the archive title displayed by the WP Travel plugin.
Enabling the "Hide Plugin Archive Page Title" setting

Archive Page after hiding the Archive Page Title

Archive Page after hiding the Archive Page Title

Option 2: Remove the text “Archive Trips”

Removing just the "Archives: Trips" text manually

If you prefer to remove the “Archives: Trips” text manually, you can add a custom code snippet to your child theme’s functions.php file.

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

function wp_travel_child_remove_cat_titles($title) {
if ( is_archive() ) { $title = single_cat_title( '', false ); } elseif ( is_tag() ) { $title = single_tag_title( '', false ); } 
return $title;
}
add_filter( 'get_the_archive_title', 'wp_travel_child_remove_cat_titles' );

This code will modify the archive title for category and tag pages to display only the category or tag name, without the “Archives” prefix.

After removing just the "Archives: Trips" text manually

Option 3: Remove text β€˜Archives’

Removing just the text "Archives" from the title

To remove just the “Archives” text while retaining the rest of the title, use the following code:

add_filter('get_the_archive_title', function ($title) {

    return preg_replace( '/^[\w]+([\s]?\w+):/', '', $title );

});

This code uses a regular expression to remove the “Archives:” prefix, leaving the remaining title.

"Archives" text has been removed while retaining rest of the title

Conclusion

By following the above-mentioned steps you can easily remove archive title from the archive page.

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro