Site icon Hip-Hop Website Design and Development

Present totally different title on class web page

In my class pages, the title of the class is proven because the title of the web page. I wish to have a distinct title, for web optimization functions. How can this be achieved?

Say my class is thriller books I would like the search engine to see a title like “The Finest Thriller Books” as a substitute of “thriller books” that it sees now. I do not care if this title can also be proven on the precise web page or not.

That is the code I take advantage of for the title of class pages:

<header class="page-header">
                    <h1  class="page-title">
                        <?php if ( is_category() ) {
                        single_cat_title( '', true );
                        } ?>
                    </h1><!-- .page-title -->
</header><!-- .page-header -->

The “drawback” appears to be that WP mechanically generates <title> tags from the <header> <h1> of the web page.
Any concepts?

Perhaps I would like a perform that checks if it’s a class and places the related <title> within the <head> of the web page?