Remove ‘Category:’ from browser tab title

enter image description here

I have a bunch of pages on a site that aggregate posts organised by category types, e.g.,

I have used the following, standard function to suppress the prefix of ‘Category:’ from the page titles of these pages:

// Remove 'category' from page title on category pages

function prefix_category_title( $title ) {
            if ( is_category() ) {
        $title = single_cat_title( '', false );
         return $title;

It is still the case however that the pesky ‘Categories:’ string appears in the browser’s rendering of the page title, e.g.

Weirdly, this doesn’t happen with ‘Articles’ even though that too is a Category page.

Does anyone know of a way round this, perhaps a more detailed filter that I can add to functions.php?

Grateful for any advice : )

Read more here:: Remove ‘Category:’ from browser tab title

Leave a Reply

Your email address will not be published. Required fields are marked *