Magento 2 is a powerful e-commerce platform, and the right theme can make a significant difference in both the look and performance of your online store. Hyvä Themes has quickly gained popularity due to its modern design, exceptional performance, and developer-friendly nature. In this guide, we’ll walk you through the steps to install Hyvä Themes in Magento 2.
Contents
Hyvä Themes is a Magento 2 theme that focuses on performance and simplicity. It’s built with modern front-end technologies and offers a leaner and faster alternative to the traditional Luma theme. With Hyvä Themes, you get a clean codebase, reduced JavaScript payload, and improved Lighthouse scores, making your site faster and more user-friendly.
composer config --auth http-basic.hyva-themes.repo.packagist.com token yourLicenseAuthentificationKey
composer config repositories.private-packagist composer https://hyva-themes.repo.packagist.com/yourProjectName/
composer require hyva-themes/magento2-default-theme
php bin/magento setup:upgrade
Congratulations! You’ve successfully installed Hyvä Themes on your Magento 2 store. Open your store’s URL in a web browser to see the new Hyvä Theme in action.
Use the following command to install ThemeFallback module
composer require hyva-themes/magento2-theme-fallback
The below command will help you use Luma Checkout with Hyvä Themes
composer require hyva-themes/magento2-luma-checkout
The below command will help you use React-based Checkout
composer require hyva-themes/magento2-react-checkout
The below command will help you use Hyvä One Step Checkout. This will work only if you have purchased the license for Hyvä Checkout.
composer require hyva-themes/magento2-hyva-checkout
Step 1: Install Hyvä Checkout
Run the following command to install Hyvä Checkout:
composer require hyva-themes/magento2-hyva-checkout
Step 2: Disable Magento HTML Minification (if enabled)
In the Magento configuration, navigate to:
Stores > Configuration > Advanced > Developer > Template Settings > Minify Html
Disable the HTML minification by setting it to “No” or run the following command:
bin/magento config:set dev/template/minify_html 0
Note: This step is only necessary if HTML minification is currently enabled (by default, it is disabled). While HTML minification can be enabled since Hyvä v1.1.6, it’s still recommended to keep it disabled for better compatibility.
Step 3: Run Setup Upgrade
After installation, update Magento’s setup with the command:
bin/magento setup:upgrade
Step 4: Generate Tailwind Styles for Checkout
To generate the styles using Tailwind CSS, replace the path vendor/hyva-themes/magento2-default-theme/web/tailwind/ with the path to your theme’s web/tailwind folder, and run the following commands:
npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ ci npm --prefix vendor/hyva-themes/magento2-default-theme/web/tailwind/ run build-prod
This will ensure Tailwind CSS builds the required styles for your checkout page.
Navigate to your Magento root directory and run the upgrade command to update the Magento database schema.
php bin/magento setup:upgrade
Installing Hyvä Themes in Magento 2 can significantly enhance your store’s performance and user experience. With this guide, you should be able to seamlessly integrate Hyvä Themes into your Magento 2 store. Enjoy the improved speed and modern design that comes with this powerful theme!
Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…
MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…
In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…
Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…
The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…
Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…