Linux 软件免费装
Banner图

Post Head Includes

开发者 rbuczynski
更新时间 2013年8月25日 12:59
捐献地址: 去捐款
PHP版本: PHP 5.3, WordPress 3.5.1 (suggested) 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

css javascript stylesheets wp_enqueue_script wp_enqueue_style post-head-includes page-head

下载

0.1.0 0.2.0

详情介绍:

Easily add scripts and stylesheets per post. This is a great tool for developers creating custom pages for their clients, but also useful for the blogger who wants to separate inline CSS & JS from their post content. This plugin provides an interface for wp_enqueue_script and wp_enqueue_style functions, so all of the functionality that a developer would find there is available in this plugin. However, script localization differs from wp_localize_script in that with this plugin you are allowed to input raw JavaScript code for localization, library initialization, and more. This plugin may also help to alleviate modern browser XSS detection from blocking potentially unsafe JavaScript.

安装:

  1. Upload files to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Create a new post or page
  4. Configure your post head includes in the meta box below the editor

屏幕截图:

  • Easily add unlimited items to your post or page.
  • You only need to configure a type and a source to get your includes properly loaded.
  • For more advanced options, you can completely customize your scripts, adding localizations or initializer code.
  • Tag your included stylesheets for properly CSS media types to add greater flexibility to your pages.

常见问题:

Where are my scripts and stylesheets?

They will be added to the HEAD area of the page or post.

Can I have more than one script or stylesheet?

Yes, you can add as many as you'd like or need.

Can I add my scripts to the footer for faster loading?

Yes, under the Advanced Options you can set In Footer to true.

My included script needs to be initialized. How can I do this?

Under Advanced Options you can add any custom JavaScript to the Localization text area. This will be added after your JS file.

更新日志:

0.1.0 - First release.