Monday, February 25, 2013

How to add CSS to Magento page

While watching a video by jiraict, I learned a bit more about adding styles to an individual Magento page.

1. Create your CSS file and put it under skin/frontend..../css/
2. Then go to your page on the Magento dash and click on design, go Custom Layout Update XML.
3. Insert the following code in there, replace appropriate words

<reference name="head">
<action method="addCss"><stylesheet>../theme/css/custom.css</stylesheet><params>media="screen"</params></action></reference>

No comments:

Post a Comment