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:
1. Go to your theme's folder (e.g., app/design/frontend/<Vendor>/<Theme>).
2. Navigate to the Web directory (app/design/frontend/<Vendor>/<Theme>/web).
3. In the css directory, create a new file for your custom styles and link it in the appropriate less file.
4. In the js directory, create a new JavaScript file and register it in the di.xml under registration.js.
5. Clear Magento cache to see your changes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is cms and crm?
Is magento owned by adobe?
what is the limitation of Magento?
What permissions required for file and folder in magento?
What are the best ecommerce platforms?
How to check magento version?
How to enable cron in magento?
What is inventory management?
How to include js in magento?
what the history behind magento?
Is magento free?
What is page layout section?