- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
css and js files not loading on a magento2 site that was initially working.please help
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: css and js files not loading on a magento2 site that was initially working.please help
Hello @karimilucc7d36
I am not able to see the screenshot, as it may not be approved yet.
But you can try to check below points
Check the file paths: Ensure that the file paths for your CSS and JS files are correct. Make sure that the file names and directory structure match the references in your HTML or PHP files.
Check file permissions: Make sure that the file permissions for your CSS and JS files are set correctly. In most cases, the files should have a permission of 644, and the directories should have a permission of 755.
Clear cache: Clear the cache of your Magento 2 site by navigating to System > Cache Management in the admin panel and clicking "Flush Magento Cache" button.
Check for errors in console: Check the console log in your web browser's developer tools for any errors related to the loading of CSS and JS files.
Check for conflicts with third-party extensions: Sometimes, third-party extensions can conflict with the loading of CSS and JS files. Try disabling any recently installed extensions to see if the issue resolves.
Check your .htaccess file: Make sure that the .htaccess file in your Magento root directory is not blocking access to your CSS and JS files.
If none of these steps resolve the issue, you may need to consult with a Magento developer or technical support team for further assistance.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: css and js files not loading on a magento2 site that was initially working.please help
The issue may be caused by a server error. Check your server logs to see stumbleguy, if there are any errors or warnings related to the loading of CSS and JS files.