H1 tag in Blank in Wordpress website
-
Good evening,
I have noticed using some h1 checkers, that my primary h1 tag is blank. I manually introduced an h1 with my main keywords, but system recognises as 2 different h1 tags, and therefore it could be harmful for my SEO purposes.
I created my wordpress website using Artisteer.
Is there any specific way (or plugin) to change this primary h1 tag so it wont appear as blank?
My site is www.outletspain.net
Thanks in advance
Maria Jesus
-
Hi Maria
I had the same issue and this helped me.
Regards
Stef
Have a copy of your current theme. If not, make one!
Change the code of the blog title and subtitle.
Open Header.php and look for:
/”>bloginfo(‘name’); ?>
Replace the H1-tags by SPAN-tags, like this:
Don’t forget to add an id to the span tag!
Do the same for the H2-tags; look for:
And replace the H2-tags by SPAN-tags like this:
Don’t forget to add an id to the span tag!
Now change the css, open the Styelesheet (style.css).
Search for h1.art-logo-name and replace it everywhere by span.art-logo-name
Search for h2.art-logo-text and replace it everywhere by span.art-logo-textOpen wrappers.php and find the following code:
’.$title.’
And replace the H2-tags by H1-tags:
’.$title.’
-
I am sorry, but I must be doing something wrong. What do you men by adding an id to span tags.
Thanks, and sorry I am a newbie
-
-
Great, it worked Wonderfully! Then I put manually the h1 tag I wanted near and it´s fixed.
Thanks for the support.
Maria Jesus
-
Only a pleasure

