Enqueueror

Enqueueror empowers WordPress developers to manage and develop their CSS & JavaScript files efficiently. It facilitates conditional CSS & JavaScript loading through the use of naming conventions and provides numerous features to enhance the code development workflow.

Quick Start Examples

  • Load a stylesheet globally
    Code a CSS file named global.css in the stylesheets directory.

  • Load a stylesheet only when viewing the page with id = 1
    Code a CSS file named type-page-id-1.css or type-id-1.css in the stylesheets directory.

  • Load a stylesheet only when viewing the page with slug = ‘example-page’
    Code a CSS file named type-page-slug-example-page.css or type-slug-example-page.css in the stylesheets directory.

  • Load a stylesheet only when viewing the category term with id = 1
    Code a CSS file named tax-category-term-id-1.css or term-id-1.css in the stylesheets directory.

  • Load a stylesheet only when viewing the category term with slug = ‘category1’
    Code a CSS file named tax-category-term-slug-category1.css or term-slug-category1.css in the stylesheets directory.

Guide

You may read the guide at GitHub.

Usage

  • Install Enqueueror.
  • Create the scripts and stylesheets directories under the active theme’s root directory.
  • Consult the guide at GitHub.
0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录