這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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:

螢幕截圖

安裝

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!

評價

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)...
閱讀全部1個評價

貢獻者及開發者

“Custom Header Footer Scripts for Customizer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Custom Header Footer Scripts for Customizer 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Custom Header Footer Scripts for Customizer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.0

  • CodeMirror support added
  • Few minor improvements

1.0

  • Initial stable release