I Have Created a new store and I have name it /new_Store/ and it opens but
CSS and Javascript not loading ( in the new store ) - The old one is working perfectly
I am using Ubuntu 18.04 and Apache
Solved! Go to Solution.
Solved: I forget to add the path for the static and media files in the Base_URL
Hi,
Can you try deploying your magento store using below command
php bin/magento s:s:d -f
If still not works, try to run below all commands:
php bin/magento setup:upgrade
php bin/magento s:d:c
php bin/magento s:s:d -f
chmod 777 -R var/* generated/* pub/static/*
Thanks!
Problem Solved! Click kudos & Accept as Solution!
Hi @sherif_sorour ,
First try with the solution shared by @Nishu Jindal , if you still not able to see your desired CSS and JS
Check the theme set for the new store view.
You can check from admin in :
CONTENT > Design > Configuration > [Edit your newly created store] > [Set Theme]
Take reference from here for more info :
https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/themes/theme-apply.html
Nothing worked, I think .htdaccess has a problem ANY HELP
It maybe due to the domain you've created, check if the Base URL, Base Link URL is correct (with / at ending), as CSS and JS will load at that domain.
See below if you have setup like this :
https://www.mageplaza.com/kb/how-to-setup-multiple-stores-magento-2.html
Thanks !
I faced a similar error and sought help from this Magento partner who was an expert in store theme customization and resolved my issue over night.