Dynamic content in Magento 2 does not automatically mean you must disable the Full Page Cache for the entire page. That is what Private Contentis designed to help avoid. A block with cacheable=”false” can make the whole page non-cacheable. With…
Preloading Hyvä pages before a click using native Speculation Rules (Magento 2)
With Hyvä 1.4+ , browsers can begin loading destination pages before visitors click a link. Hyvä uses the browser’s native Speculation Rules API and defaults to prefetch. This preloads the HTML for likely navigation destinations in the background without fully…
Semantic AI Search for Magento 2 and Hyvä (Magento 2)
Traditional Magento 2 search works reasonably well when customers know the exact product name. It becomes harder when they describe a problem, a situation or a related term instead. Aura of Clarity extends Magento 2 product search with semantic search,…
Upgrading Hyvä to 1.4+: Adapting the Tailwind Structure in a Child Theme (Magento 2)
If you are upgrading a Hyvä child theme from a version earlier than 1.4, review its Tailwind structure. Hyvä 1.4 and later no longer rely on a central tailwind.config.js file. The new structure uses hyva.config.json, tailwind-source.css and generated files in…
Fixing npm error: Missing script ‘build-prod’ (Magento 2)
When setting up a new Hyvä project, you may see the error npm error Missing script: “build-prod” in the CLI while running the npm build command. The cause is that newer Hyvä versions replaced the old build-prod script. Hyvä 1.1.x…
Building a Snap Slider with Tailwind CSS for Hyvä (Magento 2)
In this article I will show you how to build a modular, responsive slider using Tailwind CSS and a little JavaScript, without any external libraries. It is well suited to Hyvä, CMS pages or custom landing pages in Magento 2.…
Fixing Hyvä npm could not determine executable to run (Magento 2)
While working with your Hyvä theme and running npm run build-prod, you may see the following error: npm ERR! could not determine executable to run To fix it, change to your Hyvä child theme’s Tailwind directory (for example, app/design/frontend/Vendor/Your_Child_Theme/web/tailwind/) and…
Configurable options not preselected on Hyvä product pages (Magento 2)
Depending on the Hyvä version you use, configurable product options may not be preselected when opening a product URL that includes option parameters such as size or color. For example, a link might look like this: https://Ihredomain.com/product.html#159=227&146=174 The issue does…
PayPal Express button not working on Hyvä product pages (Magento 2)
Depending on your version of Hyvä, the PayPal Express button on product pages may not work. The error message is We can’t initialize Express Checkout bzw. We could not initialize the express checkout . To fix this, override vendor/hyva-themes/magento2-default-theme/Magento_Paypal/templates/express/shortcut_button.phtml in…
Using Firegento_MageSetup with Hyvä (Magento 2)
The Firegento_Magesetup module for Magento 2 does not work with Hyvä out of the box. To resolve this, install the Magesetup_Firegento compatibility module. Run the following commands from your Magento 2 root directory:
|
1 2 |
composer require hyva-themes/magento2-firegento-magesetup php bin/magento setup:upgrade |
Afterwards, Magesetup_Firegento should work with your…