Magento Themes and Magento Extensions

Magento : Add CSS / JS for Specific Category

Share

Magento : Add CSS / JS for Specific Category : This is very well known and general issues and tons of crap tutorial is also there in the internet , here is the simplest solution . Lets say suppose you want to add a css , so create a css file  so i just create a css file customcategory.css inside

/skin/frontend/default/default/css

.category-description {

    height: 475px !important;
    margin: 0 0 10px;
}

now add the below code in manage category->choose the category ->custom design and under custom layout update texarea put this

<reference name="head">
<action method="addCss"><stylesheet>css/customcategory.css</stylesheet></action>
</reference>

Comments are closed.