跳到内容

Postscript

v1.0.0

Barrett Golding · 2016年6月20日 上架

Data visionaries and multi-mediators, make any post sing with scripts and splendid with styles, all from within WordPress.

正在使用
10+
评分
暂无
累计下载
2,215
最近更新
2018年2月21日
需要 WordPress 3.5+已测试到 4.9.36

截图

Edit Post screen Postscript meta box
Edit Post screen Postscript meta box
Settings Page: User Roles, Post Types, URls, and Classes
Settings Page: User Roles, Post Types, URls, and Classes
Settings Page: Tables of Added Scripts and Styles
Settings Page: Tables of Added Scripts and Styles
Settings Page: Remove Scripts and Styles
Settings Page: Remove Scripts and Styles

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums