10Nov

Remove WordPress version tag from header

Wordpress

Since version 2.5 WordPress inserts the version meta tag <meta name=”generator” content=”WordPress 2.5″ /> automatically without you having the possibility to remove it from the header file. WordPress now uses <?php wp_head(); ?> a function that if you remove you’re removing more than just the wordpress version. So the solution is to add something to your themes functions.php file.

Place this code: remove_action('wp_head', 'wp_generator'); right before the closing php tag ?> . Now check your source code, the wordpress version is not disclosed any more.

Share This:
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Reddit
  • Digg
  • Live
  • Google Bookmarks
1 comment

Monday, November 10th, 2008 at 7:09 pm and is filed under Wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Comments so far.

  1. Posted by 5 Quick Tweaks To Improve Your Wordpress Blog on Friday 18th December

    [...] Source [...]

Leave a reply