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.

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





Comments

Leave a Reply








Transrator

Recent Posts

Categories

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(タグ)

Links

Site Description

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

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