per page styling
-
How do I apply to CSS to a set page or posts?
I’m sure I saw the code for it a while ago, but I can’t seem to find it now. I believe it involved using an unique ID for that post/page.
-
Hello there!
You’re right, you can specify which page the CSS modifies based on the ID of the page. Here’s a video that shows a way to get the ID https://www.youtube.com/watch?v=fLg2T1AvmFE
You can also grab it by using the Chrome inspect tool, it’ll show as a class in the body. Once you have the ID, you would generally put it in front of the other selectors and it would look something like this (replacing the number at the end of the page-id- so it matches your page):
.page-id-2 h2 { color: red; }Hope that helps,
Sage
- The topic ‘per page styling’ is closed to new replies.