Home / CSS Tracks / Conditional CSS Based on Page ID

Conditional CSS Based on Page ID

Put the page ID in front of the class. Here’s an example:

.page-id-3501 .heading {
font-size: 45px;
}

To find the page ID, view source and search on page or id

Top