Custom CSS Per Post

/ Published in: PHP
Save to your folder(s)

To use it, simply create a new folder called “art-direction” in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, WordPress will look for a file of that name. If it exists, it will load in in the head section.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.