Most WordPress Themes are created to look good, and rarely to play well with the plugins you choose to install.

I often encounter WordPress Themes which have customized code, which limits the functionality of the plugins I try to use.

The choice behind this is not necessarily a bad one, as the developers try to make it as easy for everyone to use, yet it limits more advanced users.

Let me show you an example I recently encountered.

The following code-snippet is from the header.php file of a theme I was tweaking for SEO purposes:

<?php if (is_home()) : ?><?php bloginfo(‘name’); ?> – <?php bloginfo(‘description’); ?>
<?php else : ?>
<?php wp_title(”, ‘false’); ?> – <?php bloginfo(‘name’); ?>

<?php endif; ?>

The code above can be confusing for users that are not used to program in PHP, so let me explain.

The content of the title-tag is PHP-code, and is the title of the homepage itself. This is what will be shown in the top of your chosen browser.

With the code above, the theme showed the name of the blog and the description on the frontpage, and on all other pages, the title of the post/page followed by a “-” hyphen and then the name of the blog. (This is set up in the settings of your blog).

This is fine for most purposes, but when you want to tweak individual posts or perhaps the entire homepage to improve SEO, you will usually turn to a plugin, and the above code limits the functionality of these plugins.

The solution is quite simple. I edited the header.php of the theme, and changed the code to the following:


This code allows any plugin to manipulate the title of your homepage, instead of being limited by the Theme developer.