If you want to remove the title “Activity” on the activity archive page then WP Travel plugin provides the feature regarding removing the title “Activity” on the activity archive page using filter code.

remove title 'Activity' in Archive

To remove the above-mentioned title, 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( 'activity' ) ) {
		return preg_replace( '/^[\w]+([\s]?\w+):/', '', $title );
	}
	return $title;
} );

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

Remove title ‘Activity’:

remove title 'Activity'

Further, if you want to rename the “Activity” title on an activity archive page, 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( 'activity' ) ) {
		return preg_replace( '/^[\w]+([\s]?\w+):/', 'Your text here:', $title );
	}
	return $title;
} );

Rename title “Activity” :

rename title 'Activity'

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

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