Magento - Add a static block to the left column

Magento - Add a static block to the left column

August 11, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento - Add a static block to the left column

Adding a Static Block to the Left Column in Magento

Hello developers! Today, we’re going to tackle an essential task in Magento—adding a static block to the left column on your category pages. By the end of this guide, you’ll have your static block positioned exactly where you want it.

Understanding Static Blocks in Magento

Before we dive into the code, let’s briefly discuss what static blocks are and why they’re useful. In Magento, a static block is a reusable chunk of content that can be embedded anywhere on your site using shortcodes or layout XML files. They’re perfect for adding promotional banners, product sliders, or any other repetitive elements across multiple pages.

Creating Your Static Block

The first step is to create the static block you want to display in the left column. To do this:

  1. Log into your Magento admin panel.
  2. Navigate to “Content” > “Pages”.
  3. Click on “Add New Page” or edit an existing page.
  4. In the content editor, delete any existing text and click the ”<>” icon to switch to HTML mode.
  5. Add your block content here using HTML, CSS, JavaScript, or even PHP code (if you’re feeling adventurous).
  6. Click “Save and Continue Edit”.
  7. Enter a Block Title and a Block Identifier for later reference.
  8. Set the Status to “Enabled” if you want it live immediately.
  9. Click “Save Block”.

Editing Your Category Page Layout XML

Next, we need to edit the layout XML file for your category page. This is where we’ll insert our new static block.

  1. Navigate to your Magento root directory using an FTP client or SFTP.
  2. Go to app/design/frontend/<Your_Theme>/layout.
  3. Open the catalog_category_view.xml file (or create it if it doesn’t exist).
  4. Add the following code inside the <body> tag:
<block type="cms/block" name="left_column_block">
    <action method="setBlockId"><block_id>your_block_identifier</block_id></action>
</block>

Replace your_block_identifier with the identifier you chose earlier when creating your static block.

  1. Save and close the file.
  2. Clear Magento’s cache by running the following command in a terminal:
php bin/magento cache:clean

Positioning Your Static Block

Now, we need to position our new block under the main column on the left side of the page. To do this, open your catalog_category_view.xml file again and add the following code inside the <body> tag:

<reference name="left.permanent.callout">
    <block type="cms/block" name="left_column_block_below_main"/>
</reference>

This tells Magento to insert our static block below the main column in the left sidebar.

Conclusion

And that’s it! You’ve successfully added a static block to your category pages’ left column. Remember, you can create multiple blocks and position them throughout your site using this same approach.

If you found this guide helpful, please share it with your fellow Magento developers. And if you’re looking for more advanced Magento tutorials and tips, be sure to check out the blog at Laravel Company, where we regularly publish new articles on everything from performance optimization to custom module development.

Happy coding!

Catalog Themes Admin JavaScript

Our network