Joomla!, Wordpress tips for building your site

Joomla!, Wordpress tips for building your site

Syndicate this site using RSS

How to remove the META TAG of generator with WordPress

Published on| November 24th, 2009 | No Comment.

Usually, WordPress try output META infromation of generator that is version information of WordPress.
If you want to remove its META information, you may be able to remove META information by removing a code that is ‘wp_head();’ in ‘header.php’.
But you might not be satisfied. Because all META information is removed in this method.

If you want to remove only version information, you will be able to do it by changing codes in ‘header.php’ as follows.

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

2 line was added. This code will work to remove only generator informations (near equal version information) of WordPress.
Note : Insert previous ‘wp_head();’;

In addition, if you are using ‘wp_head ()’ on other files in the same theme, you will get good results because you add the following codes to ‘functions.php’.

remove_action( 'wp_head', 'wp_generator' );

Add to your favorites(bookmarks): はてなブックマークへ追加するdel.icio.usLivedoor ClipYahoo!FC2Nifty ClipPOOKMARK. AirlinesBuzzurl(バザール)Choixnewsing

Trackback URL

After Admin approves this comment, it will be shown.


Comments

Leave a Reply





*