Supercharged CSS & JS Coding for WordPress
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.
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.
You may read the guide at GitHub.
Load assets "globally" as external files, for every kind of content.
Load assets as external files, based on a page's slug or ID.
Load assets as external files, based on a post's slug or ID.
Load assets as external files, based on the slug or ID of content provided by the "product" post type.
Load assets as external files, based on the slug or ID of the content, irrespectively of the content's post type.
Load assets as external files, based on the slug or ID of a term belonging in the "category" taxonomy.
Load assets as external files, when an arbitrary term in the "category" taxonomy is requested.
Load assets as external files, based on the slug or ID of a specific term in the "product_cat" taxonomy.
Organize assets in directories by post type and taxonomy.
Load assets as external files, when the Greek (WPML based) translation of an arbitrary page is requested.
Dynamically generate CSS and JavaScript code to be enqueued as external files, for every requested page, using PHP as a preprocessor.
Load JavaScript assets as external files before the closing tag, for every requested page.
Output JavaScript code contained in the .js file internally before the closing tag, for every requested page.
Output code contained in the .js and .css files internally within the HTML section, for every requested page.
Dynamically generate CSS & JavaScript code to be loaded internally within the HTML section, for every requested page.
Mix of scenarios.