Webkul
Services
Technologies Bagisto QloApps
iOS Android SAP BigCommerce Wix
Trusted by
Samsung Intel Toyota Walmart Disney Nokia Nestlé Decathlon
See all customers
Back to Top
DOC

Magento CSS and JS in specific catalog page

Magento – Add a specific CSS / JS in catalog page – Adding specific css and js is really painful in magento so here is the simple hack for adding css in magento category page .

Lets say you want to call a customcatalog.css in particular magento category , so create this file inside your template skin e.g /skin/frontend/default/default/css

.category-description {
    height: 475px !important;
    margin: 0 0 10px;
}

and after that call the xml block code under  category->choose the category ->custom design and under custom layout update texarea put this

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

Enjoy , Magento coding .

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home