Title: Custom Header Footer Scripts for Customizer
Author: Rupok
Published: <strong>2017 年 11 月 4 日</strong>
Last modified: 2023 年 8 月 20 日

---

搜索插件

![](https://ps.w.org/custom-script-for-customizer/assets/banner-772x250.png?rev=
1758423)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/custom-script-for-customizer/assets/icon-256x256.png?rev=1758423)

# Custom Header Footer Scripts for Customizer

 作者：[Rupok](https://profiles.wordpress.org/re_enter_rupok/)

[下载](https://downloads.wordpress.org/plugin/custom-script-for-customizer.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/custom-script-for-customizer/#description)
 * [评价](https://cn.wordpress.org/plugins/custom-script-for-customizer/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/custom-script-for-customizer/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/custom-script-for-customizer/#developers)

 [支持](https://wordpress.org/support/plugin/custom-script-for-customizer/)

## 描述

Add custom script to header and footer through WordPress Customizer. Edit your scripts
with CodeMirror editor within Customizer. You can place any custom JavaScript, Google
Analytics or embed script. Extremely helpful if you need to place any custom javascript
or jQuery code to header or footer. This plugin gives you the ability to place different
scripts to header or footer separately. Uses Customizer so you can edit the code
live and see the changes on the fly.

**Features:**

 * CodeMirror Editor
 * Ability to add custom scripts to wp header.
 * Ability to add custom scripts to wp footer.
 * Ability to add multiple scripts.
 * Ability to add Google Alalytics code.
 * Ability to add any embed code.

**Check my free WordPress Theme [Flexia](https://wordpress.org/themes/flexia/), 
one theme to rule them all.**

**Check my other plugins:**

**[Essential Addons For Elementor](https://wordpress.org/plugins/essential-addons-for-elementor-lite/)**–
Most popular Elementor extensions with 1 Million+ active users in the WordPress 
repository.
 **[BetterDocs](https://wordpress.org/plugins/betterdocs/)** – Best 
documentation & knowledge base plugin for WordPress to help you reduce support tickets**
[BetterLinks](https://wordpress.org/plugins/betterlinks/)** – Latest best WordPress
link management plugin for link shortening, tracking & analyzing. **[NotificationX](https://wordpress.org/plugins/notificationx/)**–
Best Social Proof & FOMO Marketing Solution **[SchedulePress](https://wordpress.org/plugins/wp-scheduled-posts/)**–
Complete solution for WordPress Post Scheduling to manage schedules through an editorial
calendar. **[EmbedPress](https://wordpress.org/plugins/embedpress/)**– Embed videos,
images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content
into your WordPress site with one-click and showcase it beautifully for the visitors.**
[Templately](https://wordpress.org/plugins/templately/)** Ultimate Template clouds
with 1800+ ready templates for Elementor & Gutenberg along with FREE cloud collaboration
with your team.

## 屏幕截图

 * [[
 * [[
 * [[
 * [[

## 安装

#### Modern Way:

 1. Go to the WordPress Dashboard “Add New Plugin” section.
 2. Search For “Custom Header Footer Scripts for Customizer”.
 3. Install, then Activate it.

#### Old Way:

 1. Upload `custom-script-for-customizer` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

### Can I insert multiple script?

Yes you can insert multiple script.

### Where the script will be inserted?

You can control where to be inserted (header or footer).

### Can I place Google Analytics code?

Yes you can easily place Google Analytics code

### Can I place jQuery code?

Sure you can!

## 评价

![](https://secure.gravatar.com/avatar/ad90cef47f18eec2a5e174ddac9db895a74d428b000a748c1d4c3dde93a13bff?
s=60&d=retro&r=g)

### 󠀁[Minimal, plug-and-play plugin that simply does what it says](https://wordpress.org/support/topic/minimal-plug-and-play-plugin-that-simply-does-what-it-says/)󠁿

 [thaikolja](https://profiles.wordpress.org/thaikolja/) 2024 年 10 月 20 日

The Custom Header Footer Scripts for Customizer plugin is an absolute gem in the
world of WordPress! It does exactly what it promises—no extra fluff or hidden fees,
just straightforward functionality. You get “Header Scripts” and “Footer Scripts”
sections added right into the Customizer, complete with live updates. It integrates
smoothly into WordPress, making it feel like a core feature rather than an add-on.
You won’t find yourself sifting through complicated menus or tutorials; it’s all
pretty intuitive. If you’ve ever struggled with monstrous plugins, this one will
feel like a sweet relief. Kudos to the developers for hitting the nail on the head!
It’s such a handy tool, and it feels great knowing there’s a straightforward solution
out there that doesn’t come with a side of stress. Highly recommend giving this 
little treasure a go!

![](https://secure.gravatar.com/avatar/dc27e41fbaecda47fe965166a9c6438f6dcb496316ee13316f9f8b0cfb718a60?
s=60&d=retro&r=g)

### 󠀁[An easy way to add script](https://wordpress.org/support/topic/an-easy-way-to-add-script/)󠁿

 [Nelmedia](https://profiles.wordpress.org/nelmedia/) 2018 年 8 月 11 日

This plugin allows you to have everything at the same place: theme customization,
CSS (since few WP versions) and now JavaScript (for header or footer). If your theme’s
options are done with the Customizer, this is the easiest option (ex: Astra, GeneratePress,
OceanWP, and many many more)…

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/)

## 贡献者及开发者

「Custom Header Footer Scripts for Customizer」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ Rupok ](https://profiles.wordpress.org/re_enter_rupok/)
 *   [ Codetic ](https://profiles.wordpress.org/codetic/)

「Custom Header Footer Scripts for Customizer」插件已被翻译至 3 种本地化语言。 感谢
[所有译者](https://translate.wordpress.org/projects/wp-plugins/custom-script-for-customizer/contributors)
为本插件所做的贡献。

[帮助将「Custom Header Footer Scripts for Customizer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-script-for-customizer)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/custom-script-for-customizer/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/custom-script-for-customizer/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/custom-script-for-customizer/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/custom-script-for-customizer/)。

## 更新日志

#### 1.1.1

 * Updated compatibility for WordPress 6 and PHP 8

#### 1.1.0

 * CodeMirror support added
 * Few minor improvements

#### 1.0

 * Initial stable release

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**3 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.3.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-script-for-customizer/) 、
   [French (France)](https://fr.wordpress.org/plugins/custom-script-for-customizer/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/custom-script-for-customizer/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/custom-script-for-customizer/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/custom-script-for-customizer)
 * 标签
 * [Codemirror](https://cn.wordpress.org/plugins/tags/codemirror/)[custom javascript](https://cn.wordpress.org/plugins/tags/custom-javascript/)
   [custom script](https://cn.wordpress.org/plugins/tags/custom-script/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-script-for-customizer/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/custom-script-for-customizer/reviews/)

## 贡献者

 *   [ Rupok ](https://profiles.wordpress.org/re_enter_rupok/)
 *   [ Codetic ](https://profiles.wordpress.org/codetic/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/custom-script-for-customizer/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.rupok.me)