Basic Theme Header Changes

How to Remove the WordPress Generator meta tag

One of the first things you should do is take the ” < meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” / > < !– leave this for stats — > line out of the header of your template.

For WordPress versions 2.6 and up, the Generator version is automatically inserted into the header.
To remove it, you have to add a new line into your header.php file:

<?php remove_action(’sbc_head’, ‘sbc_generator’); ?>

Search engines will use this as an indication that it’s probably a blog and not your static website.

How to Remove the RSS feed from WordPress

Another blog indicator is the RSS Feed, this line can be taken out as well.

< link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ? > RSS Feed” href=”< ?php bloginfo(‘rss2_url’); ? >” / >

Also, the template link to the RSS Feed subscription.
< li class=”rss”><a href=”< ?php bloginfo(‘rss2_url’); ? >”>RSS</a></li >

This does not remove the ability to use a RSS Feed in WordPress, it’s just no longer “autodiscovered”.

If you plan on using a blog page, just leave it as is!