Changing the Magento 2 theme is pretty easy, and doesn’t require any technical knowledge. In this article we’ll cover:
- Steps to change Magento 2 Theme
- How to add a design extension
- Troubleshooting- for when the changes don’t get applied.
Make sure you’ve set your store in developer mode.
Steps to Change Theme in Magento 2
The steps to applying or changing a Magento 2 theme are as follows:
- Log in to your Magento Admin Panel and select content > design > configuration
2. Click on Edit theme.
3. In the applied theme dropdown, select the theme you want to change to.
4. Click on Save Configuration
5. Delete Cache if it has been enabled.
6. Reload the storefront pages to check if the changed have successfully applied
Add A Design Exception
In Magento 2, you can also set a ‘design exception’. Meaning, you can set a different theme for particular user-agents, instead of creating a completely different store view for them.
- For this too, go to your admin panel and select content > design > configuration
- Click on edit theme
- On the Design Rule tab, select Add New User Agent Rule.
- In the Search String box specify the user-agent using regular expressions (PCRE) or normal strings. In the theme name drop-down menu select the theme to be used for the matching agent.
- Click on save configuration, and reload the front pages to see your changes.
What if Your Changes don’t Get Applied?
If your theme doesn’t change when you clear cache and reload the pages, then it is advised to:
- Delete all the files in
var/view_preprocesseddirectories and then reload the pages.
You can do this either manually, or by running the following command in CLI:
Related: Best Free Magento 2 Themes for 2020
If there’s anything we missed, or you have a query, do let us know in the comment section!
Divya loves writing and is passionate about marketing. When not trying to hone her skills, you’ll find her either reading or binging on TV shows.