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...). The H1 tag is arguably a very big part of SEO when it comes to inserting keywords into a web page ...

Read Full Article

Rise of the Machines

Over the past few years i've only really got into computer games. Although while growing up I was lucky enough to own a few consoles including the Master System with the amazing Alex the Kid built in and the Megadrive with Sonic the Hedgehog. It is only the past year that I have brought out the kid in me and brought an ...

Read Full Article

Santa Pod Drag Racing

A few months ago a friend ask me if I wanted to go to see some drag racing at Santa Pod Raceway near Northampton, UK. Now I love cars and certainly fast expensive cars but having never been to or seen drag racing before I was curious so I decided to give it a go. The day was filled with Methanol fueled 300mph 8000bh ...

Read Full Article

Previous Tab
Next Tab
1 2 3
  • featured
  • featured
  • featured
  • featured

Archive for November 3rd, 2009

custom-header-imgAs 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…). 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)

<?php the_title(); ?>

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!

TOP OF PAGE

Derby Web Design by Tristar Web Design - © Copyright 2010

Entries (RSS) and Comments (RSS) - Proudly powered by WordPress - Theme by Tristar Web Design