If you are wondering whether WP Travel includes the feature to remove the title “Destination” on the Destination archive page then no need to be worry as WP Travel plugin provides the feature regarding removing the title “Destination” in the Destination archive page using filter code.

Remove/Rename title Destination

To remove the title “Destination”, please add the following given code in the functions.php file of your child theme.

add_filter('get_the_archive_title', function ( $title ) {
    if ( is_tax( 'travel_locations' ) ) {
        return preg_replace( '/^[\w]+([\s]?\w+):/', '', $title );
    }
    return $title;
} );

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

Output:

Remove/Rename title Destination

Also, if you are willing to rename the “Destination” title on the Destination archive page then please add the following given filter code in the functions.php file of your child theme.

add_filter('get_the_archive_title', function ( $title ) {
    if ( is_tax( 'travel_locations' ) ) {
        return preg_replace( '/^[\w]+([\s]?\w+):/', 'Your Text Here:', $title );
    }
    return $title;
} );

Output:

Remove/Rename title Destination

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Further, if you have any queries, please submit them to our Contact page.

create your travel site within minutes by wptravel.io ,buy wptravel pro