WordPress如何在文章添加head代码?WP插件优化head代码

由于在这篇文章《WordPress怎么自定义页眉?安装WordPress页脚页眉插件》介绍的Header Footer Code Manager插件,目前无法添加PHP代码……

因此,在WordPress插件官网搜索,找到了可以在页眉页脚添加PHP代码的WordPress插件——Head, Footer and Post Injections插件。

Head, Footer and Post Injections插件是什么?

Head, Footer and Post Injections插件,可以让你的WordPress网站不用安装超过10个插件,就能在Header添加以下常用代码:

你只需启用Head, Footer and Post Injections插件即可集中管理代码,再也不用担心因为更换WordPress主题而丢失添加的代码。

为何安装Head, Footer and Post Injections插件?

你是否需要在帖子内容上方或之后插入广告横幅?

是的,使用Head, Footer and Post Injections插件,你可以在文章帖子或页面的顶部和底部添加代码:

WordPress文章优化head代码

Head, Footer and Post Injections插件的“高级功能”标签下,可以优化WordPress文章的head代码:

  1. CSS 合并的样式 id 移除
  2. CSS 合并的媒体移除

以下是来自Head, Footer and Post Injections插件开发者的文章介绍

CSS 合并的样式 id 移除

CSS 合并的媒体移除

Head, Footer and Post Injections插件下载

点此进入WordPress官网下载  Head, Footer and Post Injections 插件

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注