Wordpress: How to remove meta generator tag?

advertisement

Wordpress show ver no. in meta generator tag by default. You may remove the meta generator tag for security reason. It’s easy to remove meta generator tag in wordpress, just add a line to a line.

To remove meta generator tag in wordpress, follow the steps below:-

  • Login into your wordpress admin panel as administrator privilege
  • Go to Appearance -> Editor and click on the file functions.php
  • Go to the bottom of the page and add this line before the line with ?> and click Update
    remove_action('wp_head', 'wp_generator');
  • if you do not have functions.php file, you may create one with the content below and upload to your theme folder:-
    <?php remove_action('wp_head', 'wp_generator'); ?>
  • Done, you have just removed meta generator tag in wordpress
  • Now clear your wordpress cache (if you have any) else you can visit your front page to verify the existence of meta generator tag

Tags: , , ,


Posted at February 12th, 2009 by chua

If you think this article helps you to solve your problem and clear your headache, feel free to buy me a drink :)


One Response to “Wordpress: How to remove meta generator tag?”

  1. dafl;a Says:

    cool thanks

Leave a Reply