Show different title on category page

In my category pages, the title of the category is shown as the title of the page. I want to have a different title, for SEO purposes. How can this be done?

Say my category is mystery books I want the search engine to see a title like “The Best Mystery Books” instead of “mystery books” that it sees now. I don’t care if this title is also shown on the actual page or not.

This is the code I use for the title of category pages:

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

Any ideas?

Read more here:: Show different title on category page

Leave a Reply

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