8

Switched to the default Blank theme this morning for a demo and was immediately locked out of both admin and front-end with a bunch of errors.

Is there a way to toggle the theme through the config files?

2 Answers 2

8

Try updating your theme id in core config database table

UPDATE core_config_data SET `value` = NULL WHERE path = 'design/theme/theme_id';

Also try

{magento root}/bin/magento setup:upgrade
{magento root}/bin/magento cache:flush
2

In order to change magento2 theme without using admin panel do the following 2 steps.

Step1: Database

  1. UPDATE core_config_data SET value = NULL WHERE path = 'design/theme/theme_id'
  2. Go to your theme table and delete the entry for your created theme.

STEP 2 : Flush cache

php bin/magento cache:flush

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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