How To Remove The WordPress Version From Your Theme
My earlier post on the generator metatag problem (which shows the WordPress version on the Internet) includes a simple solution – one line of code in your theme.
However, it’s not always the best solution:
- If you move between themes a lot, keeping track of which ones are ‘leaking’ security info can be annoying.
- Editing each of theme can add up as well.
- If you don’t want to edit a theme (for instance, you are using ABTheme), then another solution would be better.
That other solution of course is to wrap the line into a plugin, like this:
<?php
/*==============================================================================
Plugin Name: utopia51/Kill Generator Metatag in WordPress Page Header
Author: David Pankhurst
Version: 1.00
Author URI: http://ActiveBlogging.com/
Description: Removes the generator metatag showing the WordPress version from your theme
Plugin URI: http://activeblogging.com/info/wordpress-plugin-how-to-kill-version-generator-metatag
==============================================================================*/
static $utopia51_once=0;
if ($utopia51_once++<1)
remove_action('wp_head','wp_generator');
//------------------------------------------------------------------------------
?>
You can download it in the plugins section (utopia51, ‘Fix Meta Version Tag’).
Just drop the utopia51.php plugin file in your /wp-content/plugins/ directory, and activate – the result is your theme will no longer show your version!









Thank you for the plugin! I really didn’t want to edit my WordPress theme.
Hi – I loaded Utopia.zip as plugin, and had to uninstall it. After having done that, I realise that my homepage is still carrying your comment on top of the Page. How do I remove this. This is urgent, regds, Sree
The plugin actually REMOVES the WordPress version number ‘comment’ – so when you deactivated/uninstalled it, it appears again, since it’s built in.
Leave your response!
What IS ActiveBlogging?
Click here for more details
Great Deals On WordPress Plugins!
• Easy Ad Blocks Plugin - Click Here.
• Easy Blog Popups Plugin - Click Here.
• Fading Ads Plugin - Click Here.
• Easy AutoPoster Plugin - Click Here.
• Easy Affiliate Links - Click Here.
• Easy 'TinyURL' Links Plugin - Click Here.
• Automatic Comment Killer - Click Here.
• Easy Social Rankings Plugin - Click Here.
• Easy Split Tester - Click Here.
Latest Issue
Categories
Other Sites
Pages
Members
Archives
Special Offers
Click here for more details.
Recent Posts
Most Commented
Recent Comments