How to Fix Theme Switching Error in Magento 2.2.x

How to Fix Theme Switching Error in Magento 2.2.x

Theming is something that changes the whole shopping experience of your store with a topping of some stylish design elements and features that your default Magento store never had. But every time when you upgrade to latest Magento 2.x version, you will face some issue or difficulties while using your Magento store functionality. But due to its wide developer community issue will no longer remain unsolved.

Recently, after upgrading to latest Magento 2.2.x lots of store owner are facing a theme switching issue with an error like “something went wrong while saving this configuration. The area is already set.” Basically, this issue comes from the default Magento core to fix it quickly, we can create an extension that will allow us to switch theme and apply our favorite theme on store frontend. The first file we need to create is di.xml inside out extension folder at below path.
app\code\Vendor\Extension\etc\di.xml





 
 
        	

After that, we need to create another the file to override method in AbstractTemplate.php.
app\code\Vendor\Extension\Model\Magento\Email\AbstractTemplate.php


Feel free to ask questions regarding this code.
Happy Coding!
Previous Article

How to install Official Google Recaptcha & Google Two Factor Authentication(2FA) in Magento 2.x

Next Article

How to Get Product Images Programmatically in Magento 2

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

Get Connect With Us

Subscribe to our email newsletter to get the latest posts delivered right to your email.
Pure inspiration, zero spam ✨