How to remove the default H1 tag
I want to be able to write my own H1 tags and want to remove the default H1 tags. i prefer to do my own SEO and the default H1 tags are not well optimized for search engines. I added my own H1 tag to pages/posts but, when I view the source code there are now two H1 tags in the code. This is a big no-no for search engine rankings. You can only have one unique H1 tag per page.
The default h1 tag is the text in the navigation, for instance “Contact Me”. This is not a good choice for an H1 tag as it is not descriptive enough. Nobody would search in Google for ‘contact me” So I prefer to change the h1 to something more descriptive such as “Contact Michael McDonald” .
I saw another thread where the guy asking the same question as mine, was dismissed for nit-picking, but in fact, he was following SEO best practices which the graphene theme is not.
Hope this makes sense, thanks so muchMod
Front page: site title is h1, site description is h2, post title is h1
Other pages: site title is h2, site description is h3, post title is h1
The default h1 tag is the text in the navigation
The navigation menus use lists to create their items, not h1 or h2.
Nobody would search in Google for ‘contact me” So I prefer to change the h1 to something more descriptive such as “Contact Michael McDonald” .
Post titles are always the only h1 items on a post, unless you add an h1 item in your text. (Hmmm…I may have to edit a lotta buncha posts now.) When you create/edit the post, change the post title to “Contact Michael McDonald”.
was dismissed for nit-picking
Yes, extended discussions of SEO make some of us feel a bit, well, stabby, especially when dealing with zero-content sites. Search engines are always tweaking their algorithms to take into account people who try to game the system. Good content and good structure are the keys.
That said, you are talking about good structure here. I don’t understand your comment that Graphene isn’t following SEO best practices, because, with the exception of the front page, it is pretty much following what you have outlined here. If I’ve missed something (and I have a feeling I have; it’s late and I have a splitting headache), please enlighten me.
BTW, SEO best practices according to whom? (Got a link?)
HOME PAGE is pulling the header text into the H1 <h1 style=”color:#003333;” class=”header_title”>Dr. Michael Gould Psy.D</h1>
I want it to be this: <h1 style=”color: #2880c3; font-size:14px;”>Licensed Clinical Psychologist specializing in the psychological assessment of children, adolescents and adults</h1>
ANOTHER PAGE the default H1 is this <h1 class=”post-title entry-title”> Testing Children</h1>
I WANT IT TO BE THIS: <h1>Psychological Testing for CHILDREN</h1>
SEO Best Practices according to Google: http://www.google.com/support/forum/p/Webmasters/thread?tid=784642ab38ab5f17&hl=en
Thanks again! I love Graphene and the SEO/H1 tags are fine for anyone who doesn’t understand SEO but my day job is the SEO Manager for a large brand and I make freelance websites with SEO included to clients, so it looks like I do not know my job if I am not optimizing the h1 tag or worse have two h1’sMod
I think I get your point now. So basically, you want to remove the class assignment from the H1 tags?
Okay, I can think of two ways to do this, without editing the theme’s files (which you want to avoid).
One, use a custom function in a child theme’s functions file to strip out the class on these elements. (I’m not entirely sure how easy this is, however. I will be totally useless in helping you to implement this.)
Second, do not use the theme’s default site title and site description (just leave these blank in Graphene options), but use an action hook widget to enter whatever you would like for those, and then position them with CSS. I can help you out with this if you need help.Mod
Okay, a third option:
Incorporate the site title and site description into the header image (with Photoshop or GIMP or whatever image editor you use), do not use the theme’s default site title and site description (just leave these blank in Graphene options), but use an action hook widget to enter whatever you would like for those, and then set their display value to
Ok thanks Ken. I will look into the first suggestion tomorrow.
Maybe you will see a new post from me entitled “How to use a custom function in a child theme’s functions file to strip out the class on the H1 element”.
Take some meds for your headache. Thanks and good night, Michelle
- You must be logged in to reply to this topic.