Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Elegant Page Level CSS
Clone this wiki locally
Page Level CSS is contained inside the
<head> tags of an HTML page.
Add the following to a layout, such as the Normal one, inside thetags:
<r:if_content part="styles"> <style> <!-- <r:content part="styles"/> --> </style> </r:if_content>
Note: If you have multiple HTML layouts, you will need to include the above in each one.
Create a Page Part named ‘styles’ for pages that with custom CSS (like the homepage) and place the CSS rules in there.
If no page part named ‘styles’ exists, then the page does not show any signs of this because of the
<r:if_content> tags! :-)