Skip to main content
Magento

How to Change Theme in Magento 2

Learn how to change your Magento 2 store theme. Switch between themes, install new themes, and customize your store's appearance.

How to Change Theme in Magento 2

Understanding Magento Themes

A Magento theme controls the visual appearance of your store. Changing themes allows you to update your store’s look without touching backend functionality.

Method 1: Change Theme via Admin Panel

Step 1: Log in to Admin

Access your Magento 2 Admin Panel.

Step 2: Navigate to Design

Go to Content → Design → Configuration.

Step 3: Select Store

Choose the store view you want to update.

Step 4: Select Theme

In the Design section, select your desired theme from the Theme dropdown.

Step 5: Save Configuration

Click Save Configuration.

Step 6: Clear Cache

Clear Magento cache to apply the theme changes.

Method 2: Install New Theme

Using Composer

Code implementation available in the full documentation.

Manual Installation

  • Download theme package
  • Extract to app/design/frontend/Vendor/theme/
  • Register theme in registration.php
  • Enable in Admin Panel

Theme Hierarchy

Magento uses a fallback system:

  • Custom theme files override parent theme
  • Parent theme files override base theme
  • Base theme provides default files

Custom Theme Configuration

Theme Configuration File

Edit theme.xml to customize theme settings:

Code implementation available in the full documentation.

Customizing Existing Themes

  • Modify theme variables in App/etc/theme.xml
  • Override CSS styles in web/css/
  • Customize templates in templates/
  • Add custom layouts in layouts/
  • Magento/Blank (Default)
  • Magento/Luma (Feature-rich)
  • M2 themes from various vendors
  • Custom developer themes

Theme Requirements

When choosing a theme, ensure:

  • Compatible with your Magento version
  • Responsive design for mobile
  • SEO-friendly structure
  • Good performance
  • Adequate support and updates

Best Practices

  • Test theme on staging environment first
  • Create database backup before changing
  • Clear cache after theme change
  • Test on multiple devices
  • Verify all functionality works
  • Check for CSS and JavaScript errors

Troubleshooting Theme Issues

If theme doesn’t appear correctly:

  • Clear browser cache and cookies
  • Flush Magento cache: bin/magento cache:flush
  • Recompile static files: bin/magento setup:static-content:deploy
  • Check theme registration
  • Review error logs

Conclusion

Changing themes in Magento 2 is straightforward. Choose a theme that aligns with your brand and business goals, then follow these steps to implement it successfully.

Need help with this?

Get managed Magento hosting tuned for performance.

Learn more

Ready to Get Started?

Deploy your cloud infrastructure with 24/7 expert support

Talk to an Expert