這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Custom Script Integration

描述

This plugin provides custom meta boxes in default Pages and Posts of wordpress where you can enter any scripts for each respective pages or posts, for example:

  1. Google Adwords conversion tracking
  2. Google Adsense ads
  3. Any Javascripts
  4. Page/post specific CSS codes
  5. Normal HTML codes
  6. Unlimited possibilites

You will get a meta box under each of page and post. The Meta box will have 4 Text Boxes, in each section you can add codes for:

  1. Before Content Field
  2. Below Content Field
  3. Scripts to add in tag
  4. Scripts to add in footer below tag

Plugin Documentation:
http://www.wpwox.com/wp-plugin/custom-script-integration/

螢幕截圖

  • '/assets/screenshot-1.jpg'
  • '/assets/screenshot-2.jpg'

安裝

  1. There are two ways to install the plugin:
    a) Use the ‘automatic install from the WordPress plugin directory’ option in the
    WordPress admin panel. Search for “Custom Script Integration”
    OR
    b) Download the zip-file, and use the ‘upload’ option in the WordPress > admin panel > plugins > new plugin > upload plugin

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Go to edit of any post or page, below the Content area should appear a ‘Custom Script Integration’ box. Simply enter your script in your required fields to execute theme in tag, before tag in footer, above or below contents.

常見問題

Can I use css in the meta boxes?

Yes, you can use css to specific pages or posts. Please make sure you have your intitial tags and closing tags properly marked, for example:
<style<
.wrapper {
….
}
</style<

Does it support custom post types?

No, it does not support custom post types, only default page and posts. But you an checkout our site to ge the advance plugin of this which supports the custom post types too. http://www.wpwox.com

評價

2016年10月12日
Best plugin to integrate scripts in post. I have tried several plugins, but this is the best.
2016年9月3日
I found it very useful for using the Facebook Conversion Tracker Code and Google Tracker Code for individual pages. Awesome.
閱讀全部5個評價

貢獻者及開發者

“Custom Script Integration” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Custom Script Integration 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Initial release version

1.1

  • Some minor changes

2.0

  • Updated with custom script options to add scripts on head and body of all pages and posts