Joomla!, Wordpress tips for building your site

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.

remove_action( 'wp_head', 'wp_generator' );

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' );


Leave a Reply


Recent Posts


Tag Cloud

execute remove フロントページ 投稿ページ トップページ install WIndows Note Convert META generator 日付 donwload file manage multibyte utf-8 unicode shiftjis euc console サイトマップ 問題 ParmaLink Redirect パーマリンク はみ出る pre テンプレート テーマ タグクラウド マルチランゲージ リダイレクト PHP(タグ) タグ table control HTML(タグ) コマンド 国際化(翻訳) SQLite(タグ) MySQL(タグ) qTranslate プラグイン(タグ) Wordpress(タグ)


Site Description

Joomla!, Wordpress as CMS using a site building, site management, software usage to describe the development tips.

  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする