0

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:

enter image description here

1
  • I have found a fix, Make sure the theme id is correct on the core_config_data table and widget_instance table in the database.
    – David Reis
    Feb 23 at 10:11
0

Another important thing is check your current theme from database in themes table. Your theme type should be physical.

2
  • Thanks, this helped a lot. There was an issue with the theme id parsed in the config and widgets table.
    – David Reis
    Feb 23 at 10:09
  • Yes it take 1 full day to find this issue source when I encountered first. Feb 24 at 6:08
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.