How to add custom javascript and css file in magento
Answer / Richa Pal
In Magento, you can add custom JavaScript and CSS files by following these steps:n1. Go to your theme's folder (e.g., app/design/frontend/<Vendor>/<Theme>).n2. Navigate to the Web directory (app/design/frontend/<Vendor>/<Theme>/web).n3. In the css directory, create a new file for your custom styles and link it in the appropriate less file.n4. In the js directory, create a new JavaScript file and register it in the di.xml under registration.js.n5. Clear Magento cache to see your changes.
| Is This Answer Correct ? | 0 Yes | 0 No |
How we can add a custom payment method only enable for admin section in magento?
Is magento cloud based?
What is difference between magento function getsingleton() and getmodel()
What is ecommerce platform?
What are some of the top features of magento?
What is grouped product or bundled product?
Explain EAV Concept in magento
What is multi vendor ecommerce?
List the magic methods in magento?
What is the latest version of magento 2?
what is the difference between Mage::getModel() and Mage::getSingletone() in Magento?
Explain the types of sessions are available in magento?