admin管理员组文章数量:1130349
wordpress core automatically generates canonical tag in HEAD section:
<link rel="canonical" href="" />
how to disable/remove that?
wordpress core automatically generates canonical tag in HEAD section:
<link rel="canonical" href="http://blabla" />
how to disable/remove that?
Share Improve this question asked Mar 7, 2014 at 18:51 T.ToduaT.Todua 5,8909 gold badges52 silver badges81 bronze badges1 Answer
Reset to default 17found solution: before wp_head() command, insert:
remove_action('wp_head', 'rel_canonical');
p.s. if generator meta tag is being added from elsewhere (i.e. from theme or plugin, rather than wp-core) and was priority other than 10, then you might need to put the exact priority, as is was given from that theme/plugin:
i.e. remove_action('wp_head', 'rel_canonical', 47);
wordpress core automatically generates canonical tag in HEAD section:
<link rel="canonical" href="" />
how to disable/remove that?
wordpress core automatically generates canonical tag in HEAD section:
<link rel="canonical" href="http://blabla" />
how to disable/remove that?
Share Improve this question asked Mar 7, 2014 at 18:51 T.ToduaT.Todua 5,8909 gold badges52 silver badges81 bronze badges1 Answer
Reset to default 17found solution: before wp_head() command, insert:
remove_action('wp_head', 'rel_canonical');
p.s. if generator meta tag is being added from elsewhere (i.e. from theme or plugin, rather than wp-core) and was priority other than 10, then you might need to put the exact priority, as is was given from that theme/plugin:
i.e. remove_action('wp_head', 'rel_canonical', 47);
本文标签: headersdisable wordpress canonical tag meta
版权声明:本文标题:headers - disable wordpress canonical tag meta 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749255537a2340412.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论