Quantcast
Channel: Add css to only homepage from xml in magento - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Keyur Shah for Add css to only homepage from xml in magento

this solution work for me <cms_index_index translate="label"><label>CMS Home Page</label><reference name="head"><action method="addCss"><stylesheet> css/custom.css...

View Article



Answer by criscom for Add css to only homepage from xml in magento

The above suggestions didn't work for me in Magento 1.7, blank theme. What worked was this:<reference name="head"><action...

View Article

Answer by Zack for Add css to only homepage from xml in magento

In combination with @Leo's answer as well as another blog post I found recently, here's a code snippet to add custom css to just a single page only.<reference name="head"><action...

View Article

Answer by Leo for Add css to only homepage from xml in magento

In the cms home page there is Design(Layout Update XML)use the following code in that<reference name="head"><action...

View Article

Answer by Jordy S Chemparathy for Add css to only homepage from xml in magento

Try this<cms_index_index><reference name="your cms identifier for home page"><action method="addCss"><stylesheet>your path/your css file...

View Article


Add css to only homepage from xml in magento

Want to include css file which is applicable to only homepage from xml file.Tried this :<cms_index_index><action add css> . .</action> </cms_index_index>using this in local.xml...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images