Now that you have installed a new wordpress theme, I’m sure some of you are thinking - “Gee, why can’t I do ‘this’ with one theme which I can ‘do’ with the other theme” or “how can i change the header of this theme with my own banner” etc. Sometimes you might even find *bugs* in your theme which may cause undue stress to you.
For instance - Some Poorly coded themes (usually the ones which doesn’t update regularly) may cause feed readers to not recognize WordPress’ RSS/Atom feeds. They may also cause certain plugins to become just useless. They can even cause your entire site to break down which is likely going to force you to switch back to an older theme that you really hated.In this tutorial I’ll go over 5 most important wordpress theme related issues that most WordPress theme users encounters and ways to go over and fix them.
The following are the two simple lines of code that should go in the header and footer of your theme. While these aren’t absolutely essential, several well known WordPress plugins simply won’t work at all without them. They’re so easy to add in a theme, why not?
<?php wp_head(); ?>
This piece of code should be placed right before the closing </head> tag. It is used by plugins such as ShareThis to insert things like CSS stylesheets or javascript code directly in your header. Let’s take a look at the code in header.php of the default WordPress theme.

As you can see, it is placed directly before the </head> tag.
<?php wp_footer(); ?>
Although not as widely used among the common plugins as <?php wp_head(); ?>, this has a similar role, except instead for the header - it’s for the footer. This is usually placed directly before the </body> tag in your themes.

Without these codes, some feed readers may have trouble recognizing the feed available on your WordPress blog. The following codes should be placed in your header between the <head> … </head> tags. You can pick and choose which feeds you want supported. Most prefer the RSS 2, but it won’t hurt to add the others in too!
<link rel="alternate" type="application/rss xml" title="Subscribe to <?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss xml" title="Subscribe to <?php bloginfo('name'); ?>" href=" <?php bloginfo('atom_url'); ?>" />
You can always pick and choose which ones you want. The default WordPress theme just has the RSS 2, so you should probably have at least that one.
To take most advantage of WordPress’ default “ping” function, you’ll need to have the following line within your <head> tags.
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
This is what lets you send and receive pingbacks from other blogs who may be linking to your content.
I think these all could actually fall under one heading, since all of these are located in the same area near the top of your template, in the header. This is useful if your site is in another language and you’re stuck with the English settings.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
This most likely can be copy and pasted over what you currently have at the top of your header.php file, unless you have another XHTML type (which is currently Transitional).
I know this is something you would only have to do once every year, but why worry when you can let WordPress handle it for you? Simply replace the year (2008 for example) with the following code:
<?php echo date('Y');?>
So when 2009 comes around, you won’t have anything to worry about.
12 Responses
Daniel
May 25th, 2008 at 3:57 pm
1I read similar article also named ss Theme Fix, and it was completely different. Personally, I agree with you more, because this article makes a little bit more sense for me
Эрих Мария Ремарк
April 19th, 2010 at 1:09 pm
2…
Человек, который склонен к возвышенным чувствам, обманывает обычно и себя и других. …
Петр Иванович Багратион
April 21st, 2010 at 1:58 pm
3…
Счастье всегда на стороне отважного. …
Matilde
June 12th, 2011 at 6:11 pm
4hello…
really good article. Ready to hear more next week,my blog http://rockettqqq.insanejournal.com/6087.html Many Thanks….
Chantelle
June 13th, 2011 at 5:12 pm
5hello…
really good article. Ready to hear more next week,my blog http://blogtext.org/talonmpgraham/article/548324.html Many Thanks….
Sterker
June 16th, 2011 at 4:06 am
6really good article…
I have spent a bit of time going through your posts, more than I should have but I must say, its worth it! http://zoey071.livejournal.com/610.html many Thanks….
Dchelle
June 20th, 2011 at 5:30 pm
7very helpful…
I preferred to thank you for this good article. http://yyzx.blog.cd/ I by all odds liked every little bit of it…
Chantelle
June 26th, 2011 at 3:50 am
8quality post…
I have spent a bit of time going through your posts! http://dennise.weblogplaza.com/2011/06/20/donna-karan-burghal-zen-collection/ ,i had a good read….
Eugenie
June 26th, 2011 at 6:21 pm
9really…
Fat women and girls always worried because of their ugly shaped bodies. They want to wear expensive and stylish outfits . http://thgyrsd.pimpblog.nl/54089/Green+Tea+For+Instant+Weight+Loss%3F.html but they can not wear these outwears…
Chantelle
June 27th, 2011 at 12:46 pm
10Greate…
It’s such a great site! http://ayanajvdixon.over-blog.com/article-british-bonanza-for-wimbledon-followers-77726528.html Great post, I just bookmarked it on Digg….
Dehmer
June 29th, 2011 at 1:52 pm
11really…
Fat women and girls always worried because of their ugly shaped bodies. They want to wear expensive and stylish outfits . http://dhgjky.bloxode.com/ but they can not wear these outwears…
Xehmer
August 13th, 2011 at 2:26 am
12Great One…
I must say, its worth it! My link, http://editha.blogspot.es/,thanks haha…
RSS feed for comments on this post · TrackBack URI
Leave a reply
Recent Posts
Tags
301 redirect blog-writing blog contest Blog Design blog domain Blogger blogger setup Blogging blogging tips blogging tools blog name blog ranking blog search blog title Blog Tools browser delicious Email Subscription Feedburner gmail google how-to image optimization iphone meta description meta tags mobile blog paid blogging part time blogging permalinks robots.txt RSS SEO social bookmark speed test Title Tag Tutorial widgets Wordpress wordpress directory wordpress plugin Wordpress Theme Wordpress Tutorial youtubeCategories
Archives
Blogroll
Recent Posts
Recent Comments
Blogging Blog is proudly powered by WordPress: A Blog by SEO Company