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. Commented Feb 23, 2021 at 10:11

2 Answers 2

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. Commented Feb 23, 2021 at 10:09
  • Yes it take 1 full day to find this issue source when I encountered first. Commented Feb 24, 2021 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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.