How to move static block in magento 2.1.8 at the bottom of product list in Category

How to move static block in magento 2.1.8 at the bottom of product list in Category

August 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to move static block in magento 2.1.8 at the bottom of product list in Category

Moving Static Blocks Below Product List in Magento 2.1.8

Moving static blocks around in Magento can sometimes be a challenge, but it’s entirely possible to place a block below the product list on category pages with some simple changes.

Understanding the Default Layout Structure

In Magento 2, the category view page layout is defined by the catalog_category_view.xml file located under your theme directory (or the parent theme if you haven’t created one yet). The default structure looks like this:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Catalog\Block\Category\View" name="category.products" template="catalog/category/view.phtml"/>
        </referenceContainer>
    </body>
</page>

Moving the Static Block

To move a static block below the product list, you need to add it after the category.products container. Let’s assume your static block has an identifier of my_block.

Create an XML file named catalog_category_view.xml in the app/design/frontend/[Vendor]/[Theme]/Magento_Catalog/layout/ directory (create the directories if they don’t exist). Add the following content:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Catalog\Block\Category\View" name="category.products" template="catalog/category/view.phtml"/>
            <block type="cms/block" name="my_block" before="-" output="toHtml"/>
        </referenceContainer>
    </body>
</page>

In this file, we’re referencing the Magento_Catalog.xml layout handle and adding our static block right after the category.products container using the before attribute set to -.

Updating the Static Block

After updating the layout, you need to refresh your static files for the changes to take effect. You can do this via SSH by running the following command:

php bin/magento setup:static-content:deploy -f

If you’re using a version of Magento prior to 2.3.x, you’ll need to run php bin/magento cache:flush afterward.

Conclusion

Moving static blocks in Magento is a straightforward process that requires understanding the layout structures and containers involved. By following this guide, you should now be able to place your custom block below the product list on category pages for Magento 2.1.8.

Remember, always backup your changes before making any modifications to your production environment. If you’re looking for more advanced customization options or need expert assistance with your Magento store, feel free to reach out to us at Laravel Company.

The key is to understand the layout structure and use the right tools to modify it. With a little patience and some basic XML editing, you can achieve complex layouts in Magento quite easily.

Happy coding!

Magento 2 Catalog Themes Configuration

Our network