Footer - rocketweb-fed/magento2-theme-prime GitHub Wiki

Our custom footer has been revamped using flex layout. It consists of multiple blocks containing static blocks and other elements (newsletter signup form, social links etc.).

Footer blocks

By default the footer consists of 4 blocks (left, middle, right and bottom) but you can add/remove columns and modify their content using layout declarations in Magento_Theme/layout/default.xml.

Social media icons

We've implemented social media links block that can be controlled using layout xml. You can add or replace items by specifying such parameters as title, url and icon. Block reference name is footer.social.

Example code:

<item name="facebook" xsi:type="array">
    <item name="title" xsi:type="string">Facebook</item>
    <item name="url" xsi:type="string">http://www.facebook.com/rocketweb</item>
    <item name="icon" xsi:type="string">fb</item>
</item>

Before body end

If you need to include scripts that are loaded after all other DOM elements have been loaded you can use before.body.end block.

Example code:

<referenceContainer name="before.body.end">
    <block class="Magento\Framework\View\Element\Template" name="scripts.lazysizes" template="Magento_Theme::html/lazysizes.phtml" />
</referenceContainer>
⚠️ **GitHub.com Fallback** ⚠️