本文介绍了WordPress-如何删除元生成器标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这些标签:
<meta name="generator" content="Woo Framework Version 3.1.1" />
<meta name="generator" content="WordPress 3.5" />
<meta name="generator" content="Canvas 3.0" />
我知道要删除我添加的WordPress版本标签:
I understand to remove the WordPress version tag I add:
remove_action( 'wp_head', 'wp_generator' ); // goes into functions.php
但是如何删除主题meta
标签?
But how do I remove the themes meta
tags?
推荐答案
如果仅尝试删除meta="generator"
,请将此行添加到 functions.php
If you are trying only to remove the meta="generator"
add this line to your functions.php.
remove_action( 'wp_head', 'wp_generator' );
这篇关于WordPress-如何删除元生成器标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!