Tag (archive title) – not changing
-
In translation settings, the Tag (archive title) doesn’t change when it is modified from Tag:.
This means editing features.php or placing something like this into functions.php to remove category: or tag: being rendered on the page. This function deals with the failure in the plugin.
add_filter( ‘get_the_archive_title’, function ($title) {
if ( is_category() ) {
$title = single_cat_title( ”, false );
} elseif ( is_tag() ) {
$title = single_tag_title( ”, false );
}
return $title;
});
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Tag (archive title) – not changing’ is closed to new replies.