跳到内容

Header and Footer Scripts

v2.4.2

Anand Kumar · 2014年2月20日 上架

Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just before closing tag.

正在使用
20 万+
评分
4.6 / 5
累计下载
177 万
最近更新
2026年2月1日
58 条评价需要 WordPress 4.6+已测试到 6.9.12PHP 5.6+

截图

Access this page from Dashboard --> Settings --> Header and Footer Scripts
Access this page from Dashboard --> Settings --> Header and Footer Scripts
This box will appear below the compose box on posts and pages. If not please refer to [our docs][4] if it's not there.
This box will appear below the compose box on posts and pages. If not please refer to [our docs][4] if it's not there.

An essential WordPress plugin to easily insert scripts and styles (like Google Analytics, CSS, etc.) into your website’s header and footer.

Looking for a way to add Google Analytics, Facebook Pixel, or custom tracking code to your website’s header or footer?

Header and Footer Scripts is a simple yet powerful plugin that lets you inject code—such as Google Analytics, custom CSS, Facebook Pixel, and chat widgets—directly into your site’s header (<head>) or footer.

No bloat, no ads. This lightweight plugin simply does what it says: inserts code into your header and footer efficiently.

All you have to do is add the appropriate HTML code.

Don’t forget to wrap your code with proper tags.

<script type="text/javascript">
YOUR JS CODE HERE
</script>

Or for CSS:

<style type="text/css">
YOUR CSS CODE HERE
</style>

Why use this plugin:

  • Insert scripts globally into the header and footer of your entire website.
  • Supports all script types including HTML, JavaScript, and CSS.
  • Add specific scripts to the header of individual posts or pages.
  • To insert code to Custom Post Type [New Feature].

The plugin should be compatible with WooCommerce.

What it does not offer

  • You can’t insert/execute PHP codes.

Almost all WordPress themes support this “Header and Footer Scripts” plugin. If the codes are not appearing in your site [ask for support] or look at your theme file if they have standard wp_head and wp_footer hooks.

Important Links

For further information you are welcomed to follow these links:

Plums

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

导航

说明

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

© 2026 Plums