Site logo

Archived topic

Apply CSS to single posts, not globally

3 replies · Started by themedleb on October 27, 2017

Viewing posts 1–4 of 4

Hi, can I apply CSS to only single posts, not globally? if yes what is the single posts identifier I could use in CSS? And if you have a list of other pages identifiers so I can customize each one differently like search page, archive page, ... and other pages created by me.

Thanks.

Hi there,

You can add .single in front of your CSS selector.

If you use developer tool of your browser, the unique ID should be in the body tag at the top.

Those are generic tags from WordPress.

Thank you Leo, this is much helpful.

No problem!

This archived topic is closed to new replies.