I'd like to know the best way to have different heading classes for different pages.
Eg. Home Classes i've put in an extra class 'home' to the container block I wanted to direct the new styles for which works.
But when I go into the portfolio pages or others I'd like to know what's the best way to add overall styles for the classes that wont effect all the other heading styles so I'd just like a class that effects all the text within those templates.
I've created a new class in the style sheet called body h1, h2, h3 etc but these effect the overall site still.
WordPress prints out a number of classes in the body of the page with which you can identify what page templates or catergories you are in . See screenshot: http://prntscr.com/3l6xxf . You can use the 'page-template-template-portfolio-php' class to add a different header styling to all pages with that particular page template and other such similar cases.
Hi,
I'd like to know the best way to have different heading classes for different pages.
Eg. Home Classes i've put in an extra class 'home' to the container block I wanted to direct the new styles for which works.
But when I go into the portfolio pages or others I'd like to know what's the best way to add overall styles for the classes that wont effect all the other heading styles so I'd just like a class that effects all the text within those templates.
I've created a new class in the style sheet called body h1, h2, h3 etc but these effect the overall site still.
Thanks
Heath
Hey Heath!
WordPress prints out a number of classes in the body of the page with which you can identify what page templates or catergories you are in . See screenshot: http://prntscr.com/3l6xxf . You can use the 'page-template-template-portfolio-php' class to add a different header styling to all pages with that particular page template and other such similar cases.
All the Best,
-T
ThemeNectar Support Team
Great! that's worked.