Depending on issues you may be encountering when customizing your themes and developing your store, you may not have access through the Magento Admin. You can clear and reset to your theme default without accessing the admin. After you clear the theme, the default Luma theme will be applied.
While you’re developing Magento components (modules, themes, and language packages), your rapidly changing environment requires you to periodically clear certain directories and caches. Otherwise, your code runs with exceptions and won’t function properly. For details, see Clear directories during development in DevDocs.
Environment and technologies
- Magento Commerce
- Magento Commerce (Cloud)
- Magento Open Source
- Database tools
If you need to reset the store theme, but cannot access the Admin panel, you can reset it in the database by doing the following:
- Use a database tool such as phpMyAdmin or access the DB manually from the command line to execute the following SQL query:
UPDATE core_config_data SET value=NULL WHERE path='design/theme/theme_id'
- Clear the following directories:
This way there will be no theme set on the store view level, and when you reload the store front pages, the default Luma theme will be applied.