该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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. 通过WordPress的的“Plugins”菜单激活插件

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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

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