Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Elegant Page Level CSS

radiant edited this page · 2 revisions
Clone this wiki locally

Page Level CSS is contained inside the <head> tags of an HTML page.

Step One

Add the following to a layout, such as the Normal one, inside the

<r:if_content part="styles">
  <r:content part="styles"/>

Note: If you have multiple HTML layouts, you will need to include the above in each one.

Step Two

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! :-)

Something went wrong with that request. Please try again.