Want to set up the Hyvä UI Mega Footer (Footer C) in your Magento 2 store? Here is how:
- First, copy the contents of the Hyvä UI Footer B (B-4-column-newsletter) src directory into your Magento 2 child theme, for example to app/design/frontend/Theme/hyva
- Install the Hyvä payment icons from the Magento 2 root directory with the command
1composer require hyva-themes/magento2-payment-icons
- Copy the contents of the Hyvä UI Footer C (C-mega) src directory into your child theme, for example to app/design/frontend/Theme/hyva
- Merge the contents of the default.xml files for both footers into the file app/design/frontend/Theme/hyva/Magento_Theme/layout/default.xml. Your default.xml could look like this:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051<?xml version="1.0"?><pagexmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"><body><move element="footer-static-links" destination="footer_column_1"/><referenceBlock name="footer-content"><container name="footer-content-before"/><block name="footer_column_1" template="Magento_Theme::html/footer/collapse.phtml"><arguments><argument name="title" xsi:type="string" translate="true">Shop</argument><argument name="open" xsi:type="boolean">true</argument></arguments><!-- If you want to use the links as a static block --><!-- <block class="Magento\Cms\Block\Block" name="footer-cms-content"><arguments><argument name="block_id" xsi:type="string">footer_content_1</argument></arguments></block> --></block><block name="footer_column_2" template="Magento_Theme::html/footer/collapse.phtml" after="footer_column_1"><arguments><argument name="title" xsi:type="string" translate="true">Customer Service</argument></arguments><block name="footer-static-links-services" template="Magento_Theme::html/footer/links-services.phtml"/></block><block name="footer_column_3" template="Magento_Theme::html/footer/collapse.phtml" after="footer_column_2"><arguments><argument name="title" xsi:type="string" translate="true">Our Company</argument></arguments><block name="footer-static-links-company" template="Magento_Theme::html/footer/links-company.phtml"/></block><block name="footer_column_4" template="Magento_Theme::html/footer/collapse.phtml" after="footer_column_3"><arguments><argument name="title" xsi:type="string" translate="true">My Account</argument></arguments><block name="footer_menu_4" template="Magento_Theme::html/footer/menu-account.phtml"/></block><container name="footer-content-after"><block name="footer-payment" template="Magento_Theme::html/footer/payment.phtml"/></container></referenceBlock><referenceContainer name="footer-content-before"><block name="footer-cta" template="Magento_Theme::html/footer/cta.phtml"/></referenceContainer><referenceContainer name="footer-content-after"><block name="footer-usps" template="Magento_Theme::html/footer/usps.phtml" before="-"/></referenceContainer></body></page> - Run npm run build from the appropriate directory in your Magento 2 installation. The command could look like this:
1npm --prefix app/design/frontend/Theme/hyva/web/tailwind run build-prod
- Run your normal Magento 2 deployment command.
Done! Reload your storefront. You should now see the Hyvä UI Mega Footer.
Setting up the Hyvä UI Mega Footer (Footer C)
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.