Magento - How to add static block on side columns in home page

Magento - How to add static block on side columns in home page

August 2, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento - How to add static block on side columns in home page

Adding Static Blocks to Side Columns on the Homepage in Magento

If you’re using the default home page layout of “2 columns with right bar” in Magento, you may notice that any content you add appears only in the middle column by default. In this guide, we’ll show you how to add static blocks or products to either the left or right side column, replacing or appending after existing elements like the compare product list.

Understanding Magento’s Layout Structure

Before diving into the code, it helps to understand Magento’s layout structure. The home page uses the 2columns-right layout by default. This layout consists of three columns: a left sidebar, a middle content area, and a right sidebar (which contains elements like the compare products block).

Adding Static Blocks to Side Columns

To add static blocks to side columns, you’ll need to create a new static block in your Magento admin panel first:

  1. Navigate to Content > Elements > Blocks in your Magento backend.

  2. Click on the Add New Block button.

  3. Fill in the required fields (Identifier, Title, etc.) and enter your content or select an existing CMS page.

  4. Save and close the block.

Adding a Static Block to the Left Sidebar

To add this static block to the left sidebar:

  1. Open app/design/frontend/[your_package]/[your_theme]/layout/default.xml in your favorite text editor.

  2. Locate or create an < UpdateHandle name="catalog_product_view" > section inside this file.

  3. Add the following code within this <update> block (replace [block_identifier] with your block’s identifier):

<reference name="left">
    <block type="cms/block" before="-" name="my_static_block_left">
        <action method="setBlockId"><block_id>[block_identifier]</block_id></action>
    </block>
</reference>

Adding a Static Block to the Right Sidebar

To add it to the right sidebar:

  1. Open or create the app/design/frontend/[your_package]/[your_theme]/layout/default.xml file.

  2. Locate or create an < UpdateHandle name="catalog_product_view" > section inside this file.

  3. Add the following code within this <update> block (replace [block_identifier] with your block’s identifier):

<reference name="right">
    <block type="cms/block" before="-" name="my_static_block_right">
        <action method="setBlockId"><block_id>[block_identifier]</block_id></action>
    </block>
</reference>

Adding Blocks with Laravel Company’s Extension Manager

For a more streamlined approach, consider using Laravel Company’s Extension Manager. This tool provides pre-built solutions for common Magento tasks and can save you time in the long run.

With our Extension Manager, you can easily:

  • Install pre-built modules for adding blocks to sidebars.
  • Update your extensions quickly and securely.
  • Access support and documentation directly from the admin panel.

Conclusion

Adding static blocks or products to the left and right columns on your Magento home page involves editing the layout XML files or using a third-party extension like Laravel Company’s Extension Manager. By following this guide, you can now replace or append content in these sidebars with ease, improving your site’s functionality and user experience.

Remember to always backup your files before making changes to avoid any potential data loss. If you need further assistance or have other Magento development needs, don’t hesitate to contact us at Laravel Company.

Catalog Themes Admin CLI

Our network