Page Ranking Tool

Add a static block into Footer In Magento

If we want to remove the default magento footer links and wants to display your own footer, Magento provides the Static blocks, here we can add the text as well as the HTML also through the editor. Please follow the procedure to display the custom footer block in magento.

Step 1: Add a new static block for this Go to the Admin panel CMS -> Static Blocks here you can create the static block Suppose the static block identifier is custom_footer_block.
Step 2: Now Open the page.xml file it will be in app/design/frontend/default/[your_theme]/layout/, search for the code block

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">

and add this code block here

<block type="cms/block" name="custom_footer_block">
<action method="setBlockId"><block_id>custom_footer_block</block_id></action>

Then this code block will look like as

<block type="page/html_footer" name="footer" as="footer" template="page/html/footer.phtml">
<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml"/>
<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml"/>
<block type="cms/block" name="custom_footer_block">
<action method="setBlockId">

Step 3: Now open your footer.phtml file it will be in app/design/frontend/default/[your_theme]/template/page/html/

<?php echo $this->getChildHtml('custom_footer_block') ?> //our custom block

for adding a link to your footer links you can always use this construction

<reference name="footer_links">
<action method="addLink" translate="label title">
<label>Your Path</label>
<title>Your Path</title>

Hope this will help to someone else.

  1. Anonymous

    Hey there! I just want to give you a big thumbs
    up for your excellent info you have got right here on this post.
    I’ll be coming back to your web site for more soon.

  2. Adrieneleonard

    Hey just wanted to give you a quick heads up. The words in your post seem to be running off the screen in
    Opera. I’m not sure if this is a formatting issue or something to do with browser compatibility but I figured I’d post to let
    you know. The layout look great though! Hope you get the problem fixed soon.


    • admin


      Thanks for your feedback I am looking the issue and will solve it soon..


  3. thank you so much for such a simple explanation. you saved me a lot of time implementing the same

  4. {grafix consultant

    I don’t know if it’s just me or if perhaps everybody else experiencing issues with your
    website. It appears like some of the written text in your content
    are running off the screen. Can somebody else please provide feedback and let me know if this is happening
    to them too? This might be a issue with my
    internet browser because I’ve had this happen previously.
    Many thanks