custom CSS applied to custom page templates
-
I have created 2 new page templates in a child theme, working on local server. I am looking to have custom colours and backgrounds for each template. what is the general CSS call for TEMPLATES, not page id. I’ve searched and search through tutorials on creating custom page templates, but the css for them seems to never be present.
Here is the relevant body class from source: page page-id-5231 page-template page-template-page-whistler-php
If I use body.page-id-5231 {some rad css} I achieve my goal (sort of) as the changes are applied to THAT page, but any new pages under that template will have to be added to the stylesheet if I want to apply the css changes.
So, the question is: What is the general css that can be used to apply changes to the template?
Tried body.page-template page-template-page-whistler-php {some rad css} and other variations. Do I need to call a file path some where in there?
- The topic ‘custom CSS applied to custom page templates’ is closed to new replies.