plugin-icon

Postscript

제작자: Barrett Golding·
Data visionaries and multi-mediators, make any post sing with scripts and splendid with styles, all from within WordPress.
버전
1.0.0
활성화된 설치 항목
10
최근 업데이트일
Feb 21, 2018
Postscript

No more shoehorning stylesheets and JavaScripts into the post content box. No more loading scripts on every post that only a few use. Postscript lets you easily add libraries or single-post script and style files post-by-post.

The plugin uses the WordPress “enqueue” methods, which means you can control dependencies (when registering scripts), improve site performance by putting styles in the head and scripts in the footer, and eliminate loading multiple copies of the same library (jQuery, I’m looking at you).

Enqueue Registered Styles and Scripts (by Handle)

Use the Postscript meta box (Edit Post screen) to enqueue registered styles and scripts (listed by handle in checkboxes).

Enqueue Unregistered Styles, Scripts, and Data Files (by URL)

For each post, you can also enqueue unregistered files, by entering URLs in the meta box text fields for: * 1 CSS stylesheet. * 2 JavaScript URLs, e.g, one JSON data file and one script file.

Add Post and Body Classes

And for each post, you can add: * A classname, to the HTML body tag (requires body_class() in theme). * A classname, to class="post" list (inserted by WordPress, requires post_class() in theme).

Settings and Security

The Settings screen lets you control which user-roles and post-types display the Postscript meta box and which script/style handles users are allowed to enqueue.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.9.30
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.