Custom Header Tag for WordPress

As brilliant as I think WordPress is I do feel that there are a few features that do need to be addressed. One of the big areas of SEO that I feel WordPress lacks is the simple ability to use custom H tags (H1, H2 etc…), I’m hoping that this might be addressed in the new 3.0 version of WordPress soon to be released.

The H1 tag is arguably a very big part of SEO when it comes to inserting keywords into a web page so surely it makes sense to be able to choose what the tag itself says.

With the help of the custom fields however there is an easy way:

Find: (in your page.php for example)

<h1><?php the_title(); ?></h1>

And replace with:

<h1><?php $thisPost = $post -> ID; if  (get_post_meta($thisPost, changeH1, true) !=null)
{ echo (get_post_meta($thisPost, changeH1, true)); }

else { the_title(); }
?></h1>

Next open up the page where you would like the custom header and in the ‘Custom Fields’ section enter the following details:

Name: changeH1
Value: Whatever you want!

Et voilĂ , you can now have any H1 that you need. This is very useful for SEO reasons … Trust me!

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Tags: , , , ,

  1. 4 Responses

  2. Wordpress Installation Service says:

    Very helpful information. I’ll give it a try then. Thanks!

  3. Nick says:

    Not so much a comment about WordPress but about Header tags; whilst I’ve never doubted their use as a structuring tool for web design, I am still not convinced that for SEO purposes their use is essential.

    Bing certainly takes more notice of them more than Google, and in fact it appears that Google may be ignoring certain H tags due to their overuse by dodgy webmasters.

    An interesting article I came across this morning, not sure if I can do a linky so you’ll have to copy and paste:
    http://www.webproworld.com/google-discussion-forum/95014-main-differences-optimizing-google-compared-other-ses.html

  4. Administrator says:

    No problem, as soon as I have more tips I will add them. I hope they help =)

  5. Orlando Web Designing says:

    Thanks for your information. Please keep posting more tips for word press sites.

Post your comments

New Template – Transmission v2

Well yet again it’s been a while since I’ve had chance to do any sort of blogging. The other day while I had a bit of spare time I decided [...]

Bing copies Google SERPs page?

Since the arrival of Microsoft’s Bing search engine they have steadily prized a small piece of Google’s market share. I personally still use Google for the vast majority of my [...]

Latest Tweet

Derby Web Design on White Hat vs Black Hat SEO
For more SEO information check out a podcast called SEO Rockstars, they have a lot of information ab ...
Derby Web Design on New Template – Transmission v2
I'm a big fan of Cufon and Coda Slider so together there even better! ...
Wordpress Installation Service on Custom Header Tag for WordPress
Very helpful information. I'll give it a try then. Thanks! ...

Recommended Links

  • Web Design
  • E-Commerce Web Design
  • Air Conditioning
  • Web Design
  • Handmade Furniture
  • Website Design Services

Web Design by Website Design Derby & Derby Web Design © 2005 - 2010 - Proudly powered by Wordpress