Request: CSS body class for top level parent page
Now the class range is ‘page page-id-12933 page-child parent-pageid-12932’, but there is no class for a top level page.
In my case I wanted to give a page and all of it’s sub(sub,sub etc.) pages a different margin and padding. In the example above parent-pageid-12932 is already a childpage of a top level page, but it’s not mentioned in the body classes.
If it were, I could declare styles for all pages like this:
- The topic ‘Request: CSS body class for top level parent page’ is closed to new replies.