Issue when running deploy static content command - Magento 2
-
15-04-2021 - |
Question
When running the php bin/magento setup:static-content:deploy
command I am having an issue with the frontend of the site where it looks like it is loading the Magento/luma theme and ignoring all of my theme files.
Also, I have tried the --exclude-theme
on the command to ignore the Magento/luma theme but no luck.
Here is how the website is looking when I run the command:
Solution
Another important thing is check your current theme from database in themes table. Your theme type should be physical.
OTHER TIPS
When you execute this command you must add the languages of your store and -f, for example my store uses Spanish from Spain so:
php bin/magento setup:static-content:deploy es_ES en_US -f
php bin/magento cache:flush
I hope it helps
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange