Adding cms block to footer links magento

Adding cms block to footer links magento

July 28, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Adding cms block to footer links magento

Are you looking to add a custom CMS block as footer links in your Magento store? You’ve come to the right place! In this guide, we’ll walk you through the process of creating and displaying a static block in the footer, specifically for a particular store view.

Understanding Magento’s CMS Block System

First, let’s understand what a CMS block is in Magento. A CMS block is a reusable piece of content that you can insert into various places on your website, including pages, categories, product descriptions, and even the header or footer. This feature allows for dynamic content creation without touching template files directly.

Creating Your CMS Block

To begin, navigate to the admin panel and click on CMS > Pages. Then, in the top right corner, select Add New Page.

Give your new page a meaningful title, such as “Footer Links Block”. In the Content section, you can add your desired links using HTML. For example:

<p>
  <a href="https://www.laravelcompany.com">About Us</a><br>
  <a href="https://www.laravelcompany.com/contact">Contact Us</a><br>
  <a href="https://www.laravelcompany.com/privacy-policy">Privacy Policy</a>
</p>

Remember to use appropriate anchor tags for your links. After adding the content, click Save Page.

Assigning the Block to a Store View

Now that you have created your block, let’s assign it specifically to your desired store view.

  1. In the admin panel, go back to CMS > Blocks.
  2. Click on Add New Block.
  3. Fill in the Title field (e.g., “Footer Links”) and scroll down to the Content section.
  4. In the Content box, select your newly created page from the dropdown menu.

Next, you need to associate this block with a specific store view:

  1. Scroll down to the Store View section.
  2. Choose the appropriate store view for which you want to display these footer links.
  3. Click Save Block.

To actually place your block in the footer, we need to modify a layout XML file.

  1. Navigate to the app/design/frontend/[your_package]/[your_theme] folder via FTP or SSH.
  2. Find and open the layout/local.xml file (create it if it doesn’t exist).

You’ll see existing layout updates. We’ll add a new one for our footer block:

<layout>
  <default>
    <reference name="footer_links">
      <block type="cms/block" name="footer.links" before="-">
        <action method="setBlockId"><block_id>footer_links</block_id></action>
      </block>
    </reference>
  </default>
</layout>

In the above code, replace footer_links with whatever you named your block in Magento. The before="-" attribute ensures that it appears as the first item in the footer.

After making these changes, save the file and clear your cache by running:

php bin/magento cache:clean

Finally, visit your store’s frontend. You should now see your custom links appearing at the bottom of every page for the specified store view.

Remember to replace any placeholders with actual paths or URLs relevant to your store.

This concludes our guide on adding a CMS static block as footer links in Magento. If you found this helpful, consider checking out other Magento-related tutorials and resources available at Laravel Company.

Catalog Themes Admin CLI

Our network