Video: Add CSS to a single Magento CMS page
This videotutorial shows you how you can add a single CSS-stylesheet to a specific CMS page in Magento. The trick here is to use a XML Layout Update inside the properties of the CMS-page and use the "addCss" method to add your CSS.
In the tutorial it is explained how to add XML-code to a specific CMS-page. The XML-layout code used can be found below. The HTML-code of the CMS-page and the CSS-code to style the HTML are left out.
<reference name="head">Created on Wednesday, 04 November 2009
<action method="addCss">
<stylesheet>../yireo/css/custom.css</stylesheet>
<params>media="screen"</params>
</action>
</reference>
Modified on Friday, 12 November 2010
More tutorials in this section
- Set the default direction or ordering for Magento category-pages
- Build your own Magento override-module
- Video: Replace Magento Checkout Button image with CSS
- Video: Modify the Magento Default Theme
- Video: Custom column layout
- Video: Magento Developer Toolbar
- Video: Add CSS to a single Magento CMS page
- Video: Dynamic product image to Static Page
