Skip to content
On this page

Examples

Use the following tables to better understand how to name your assets or as a quick reference for various common asset filenames.

CSS

Content TargetingAsset Filename
Every WordPress pagetype-page.css
A WordPress page with slug "home"type-page-slug-home.css
Every WordPress posttype-post.css
Every WooCommerce producttype-product.css
A specific WooCommerce product with slug "product1"type-product-slug-product1.css
WooCommerce shop pagearchive-type-product.css
WooCommerce product category pagetax-product_cat.css
WooCommerce checkout page with slug "checkout"type-page-slug-checkout.css
WooCommerce account page with slug "my-account"type-page-slug-my-account.css

JavaScript

Content TargetingAsset Filename
Every WordPress pagetype-page.js
A WordPress page with slug "home"type-page-slug-home.js
Every WordPress posttype-post.js
Every WooCommerce producttype-product.js
A specific WooCommerce product with slug "product1"type-product-slug-product1.js
WooCommerce shop pagearchive-type-product.js
WooCommerce product category pagetax-product_cat.js
WooCommerce checkout page with slug "checkout"type-page-slug-checkout.js
WooCommerce account page with slug "my-account"type-page-slug-my-account.js