using .page-id
-
I am trying to do custom background colors and images by page number using the main template style.css file. I saw online how I could use body.page-id or .page-id. Supposedly, the page ID I need to change is 2. However, the following code I added will only change the color to red. The code after that using page-id will not override and turn to green. What am I doing wrong? I can turn it red, but I can’t use page-id to turn it a special color.
body {
background-color: red;}
body.page-id-1,body.page-id-2,body.page-id-3 {
background-color: green;
}The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘using .page-id’ is closed to new replies.