christofu
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Themes and Templates
In reply to: [Olsen Light] Please fix this SEO mistakeHi Fotis,
Thanks a lot for your quick answer.
My link to Neil Patel’s article has been deleted due to moderation, here it is again, hope it’ll work. It contains very valuable informations for anyone interested about h1 tags relating to SEO optimization.Thanks for your suggestions, here’s what I did:
- Creating child theme. I personally ended up using a plugin that worked perfectly. In my case I used Child Theme Generator (compatible with latest version of wordpress which is 5.0.2 at the time of this post)
-
Copy paste header.php from olsen-light folder to the new olsen-light-child folder.
Then edit the one (header.php) from the new olsen-light-child folder.
Then delete h1 tag, for me it was something like this:
<h1 itemprop="name">
And
</h1> -
Replacing the h2 tags by h1 tags in the post titles by doing this:
Copy and paste single.php from olsen-light folder to the new olsen-light-child folder.
Then edit the one (single.php) from the new olsen-light-child folder.
Then change h2 tag to h1 tag, for me it looked like this:<h2 class="entry-title" itemprop="headline"> <?php the_title(); ?> </h2>To change to:
<h1 class="entry-title" itemprop="headline"> <?php the_title(); ?> </h1>
I personally also removed the h3 tag from the footer (footer.php) using the same method.
Et voilà !
Viewing 1 replies (of 1 total)