Free Android CakePHP GMaps Articles by Bali Web Design

October 28, 2010

How to remove generator meta tag wordpress

Filed under: php,wordpress — admin @ 10:13 pm

Starting from wordpress 2.5 and above, you cannot remove generated meta tag wordpress version through your template. On prior version, it is simple by comment the line for showing wordpress version on your template.

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />

WordPress 2.5 and above, the version is moved into the core of the wordpress. So it will automatically generate metatag generate, such as

<meta name="generator" content="WordPress 3.0" />

If you want to remove this generated line, there are some ways :

  1. Login to administration wordpress page, and then go to Appearance > Themes, And then Editor. Open functions.php, Add this line before the closing ?> tag
    remove_action('wp_head', 'wp_generator');
  2. Or use this plugin. Install on plugins area.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment