How To Add Custom CSS and JS in Magento

How To Add Custom CSS and JS in Magento

Earlier, I posted a solution to add custom CSS and JS in Magento 2.

The below post offers the same solution for Magento 1 store owners.

One can use the below code to add custom CSS and JS in Magento store in order to customize a custom theme or a page.

I’d recommend bookmarking this post for the next time you face a crazy client requirement! 😉

Method to add custom CSS and JS in Magento:

Create app/design/frontend/base/default/layout/extension.xml:

That’s it.

Any doubts? Mention them in the Comments section below and I’d be happy to help.

Feel free to share the solution with fellow Magento developers via social media.

Thank you.

5
(based on 9 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a reply:

Your email address will not be published.

SUBSCRIBE
3.8
(based on 5 Reviews)