跳到内容

Add Code To Head

v1.23

salubrio · 2012年9月23日 上架

Add custom JavaScript/HTML/CSS codes to the page head without editing the template.

正在使用
2,000+
评分
5.0 / 5
累计下载
4.6 万
最近更新
2026年4月23日
2 条评价需要 WordPress 6.1+已测试到 6.9.12PHP 8.0+

贡献者

截图

Options screen
Options screen

Intended users: Template Designers, Developer, Admins

If you wish to add any custom HTML to each page’s header, then this plugin is for you.

This is useful for verifying you are the owner of the website to services such as Mailchimp or Google. You can quickly add the verification codes to your page header without having to edit your site’s template.

In general, you can add custom CSS, a link to an external JavaScript file or something else. While it is generally recommended to create a child template if you’re going to make extensive, permanent changes to a template, there may be instances where a small change or two is needed that wouldn’t justify the creation of a child template—or your current template might not support child templates. You should nearly always avoid editing a template directly, because your changes will be lost when you next update the template.

This plugin is not affected by template changes.

Acknowledgements

Plugin Icon (CC BY 3.0) by DeniShop

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums