Hyva, Magento, Magento 2

Magento 2 : Luma Theme Fallback in Hyvä theme

Magento 2 Luma Theme Fallback in Hyvä theme

In this tutorial, Today I will explain to how to use luma theme fallback feature in Hyvä theme for Magento 2. In the Hyvä theme for Magento 2, the Luma theme fallback is a functionality that allows you to run the specific route / pages into other theme. This means that if you want to exclude specific page / route to run on Hyvä theme then you can use this functionality and run that specific page into Luma or any other theme.

The corresponding template or style from the Luma theme will automatically be used by Magento if the Hyvä theme does not have a particular template or style. This means that the Luma theme acts as a fallback option.

You may also like this :

Benifits of Luma theme fallback :

  • Specific routes can be configured to use a different theme.
  • Reduced Development Time
  • Flexibility in Customization
  • Improved Cost Efficiency
  • Proven Stability

How to Configure Luma Theme Fallback in Hyvä?

1) First of all, Let’s assume that you have already installed Hyvä theme in the project.

2) Add theme fallback module as a dependency in your project using this below command :

composer require hyva-themes/magento2-theme-fallback

3) Run the below commands to install module

php bin/magento s:up
php bin/magento s:s:d -f
php bin/magento c:f

4) After that, Apply Hyvä theme in the project using Content -> Design -> Configuration.

5) Then, Go to Store -> Configuration -> Hyva Themes -> Theme Fallback & Set this below value in the Configuration & save Configuration.

  • Enable : Set Yes into the dropdown.
  • Theme full path : Select the theme which you want to apply as fallback.
  • Apply fallback to requests containing : Add action / router path into URL field which you want to exclude and save configuration.

hyva luma theme fallback

 

That’s it !!!

I hope this blog is easy to understand about how to use luma theme fallback feature in Hyvä theme for Magento 2 and How to exclude specific page / route to run on Hyvä theme. In case, I missed anything or need to add some information, always feel free to leave a comment on this blog, I’ll get back with a proper solution.

Keep liking and sharing !!!

 

Tagged ,