wordpress

Remove meta name=”generator” content=”WordPress 3.2.1″

Posted on September 16, 2011 · Posted in Web Design · BY: Amir Farid

From the 2.5 version of WordPress the meta tag generator that displayed the version of WordPress you were using was removed from the template file to become a core function. This meant that you could not simply remove the tag from the template file anymore.

To remove meta name=”generator” content=”WordPress 3.2.1″ or for any other version number, this now needs to be implemented via the functions file.

There are many reasons to remove this tag but i think the most important is for security reasons. Showing your WordPress version could allow hackers to exploit vulnerabilities for specific WordPress versions. Most Web Hosting companies have auto install up-daters which update your WordPress installs and removes vulnerabilities that are found, however many do not.

Now to remove this tag, simply login to your WordPress admin area and follow the instructions below:

1. Navigate to Design -> Theme Editor and click Theme Functions (functions.php) from the list of theme files

2. Just before the closing ?> tag, add the following:

remove_action('wp_head', 'wp_generator');

3. Now click on update and the file will be saved.

For those of you that don’t have a functions file, simply create a new file and call it functions.php and add the following code to that file:

<?php remove_action('wp_head', 'wp_generator'); ?>

Your WordPress version tag should now be removed from your site. To check this simply visit your website and hit ctrl + u, which shows you the source code. If all has gone well the generator code is no longer there.

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

Amir Farid

Creative SEO Director at Umbrella Interactive Ltd

Amir Farid is the Creative SEO Director of Umbrella Interactive Ltd. Based in Rochdale, Greater Manchester, Umbrella Interactive provides online and digital media solutions to SME’s and start-up businesses. Umbrella Brands include Umbrella Host, SEO Umbrella and Umbrella Web Studio. You Can find him on Google+

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

@UmbrellaWebStud

We are a full service #DigitalAgency based in #Rochdale, Lancashire specialising in #WebDesign, #MagentoDevelopment, #SEO and #PPC

The slow death of Flash continues #GoogleChrome https://t.co/fCgTc2tA2w https://t.co/9mMe3vA3E9 – 5 months ago
Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr

Amir Farid
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Google+
  • Facebook
  • Pinterest
  • Twitter
  • Delicious
  • reddit
  • LinkedIn
  • StumbleUpon
  • Tumblr