Answer Posted / 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 |
Post New Answer View All Answers