0

I want to place a full width static block at the bottom of the category page (of every category). I am quite new to Magento 2, and I was wondering what the best practice is for this?

1 Answer 1

2

Step 1: Create the static block in the Magento admin.

Step 2: In [Your Theme Folder]/Magento_Catalog/layout/catalog_category_view.xml add the following (Your static block name can be whatever you like):

<referenceContainer name="content.bottom">
    <block class="Magento\Cms\Block\Block" name="[Your_Static_Block_Name]">
    <arguments>
        <argument name="block_id"  xsi:type="string">[Your_Static_Block_Id]</argument>
    </arguments>
    </block>
</referenceContainer>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.