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

Custom Header Footer Scripts 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, one theme to rule them all.

Check my other plugins:

Essential Addons For Elementor – Most popular Elementor extensions with 1 Million+ active users in the WordPress repository.
BetterDocs – Best documentation & knowledge base plugin for WordPress to help you reduce support tickets
BetterLinks – Latest best WordPress link management plugin for link shortening, tracking & analyzing.
NotificationX – Best Social Proof & FOMO Marketing Solution
SchedulePress – Complete solution for WordPress Post Scheduling to manage schedules through an editorial calendar.
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 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!

评价

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!
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条评价

贡献者及开发者

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

贡献者

「Custom Header Footer Scripts for Customizer」插件已被翻译至 3 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Custom Header Footer Scripts for Customizer」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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