I want to put text after the footer links for SEO purposes for my Magento website. I want different texts to be shown below the footer for the homepage, categories and the products.

As an example, you can refer to this: https://www.mybatua.com/ [They have a long 800-word text below the footer for their home and categories.]

I tried using the widget and static block approach but the text never shows when I select page footer as the location.

Help will be appreciated.

Thanks in advance


the static block approach in this case seems to be a good approach.

1) Create 3 blocks : seo_footer_homepage, seo_footer_categories and seo_footer_products.

2) If you don't have already one, create a file called local.xml in your theme (app/design/frontend/<your-theme>/default/layout/local.xml) with the following content :

<?xml version="1.0" encoding="UTF-8"?>
        <reference name="footer">
             <block type="cms/block" name="seo_footer_homepage" as="seo_footer_homepage" after="-">
                <action method="setBlockId"><block_id>seo_footer_homepage</block_id</action>
        <reference name="footer">
             <block type="cms/block" name="seo_footer_categories" as="seo_footer_categories" after="-">
                <action method="setBlockId"><block_id>seo_footer_categories</block_id</action>
        <reference name="footer">
             <block type="cms/block" name="seo_footer_products" as="seo_footer_products" after="-">
                <action method="setBlockId"><block_id>seo_footer_products</block_id</action>
| improve this answer | |
  • Hi Julien. It didn't work. I added the lines as suggested and some content to the static blocks too but with no results on the frontend. – Danny Feb 14 '18 at 10:51
  • Well, it's weird : I guess you have some specifics code (or my code is wrong..., who knows). For example : the handle cms_index_index is the standard handle for the home. Maybe you should try to debug with some Mage::log($this->getLayout()->getUpdate()->getHandles()); (you will see which handle are available in each pages (home, product, category). Then, you should look if the reference name="footer" is good for you (Maybe this reference has been removed and/or you are using another reference for the footer part). – Julien Loizelet Feb 14 '18 at 11:10
  • cms_index_index is the standard handle as you said. Could you please tell me where should i write that code to check the handles? I have less knowledge and i am still learning. i changed the reference name="footer" to "footer_links" and the links disappeared but the content did not show below that block. – Danny Feb 14 '18 at 11:51
  • You should write it in a template that is called on every page. It depends on your code but, for example, in app/design/frontend/base-or-your-theme/default/template/page/html/head.phtml. Then, ensure that you have enabled the logs (System->Configuration->Advanced->Developer->Log Settings) and look in the system.log file. – Julien Loizelet Feb 14 '18 at 13:38
  • You were right Julien. I added the lines under cms_index_index for the homepage. Just had to add a few extra lines in app-design-frontend-tem-template-page-html-boldfooter.phtmlbold : <?php if (Mage::getBlockSingleton('page/html_header')->getIsHomePage()):?> <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('seo_footer_homepage')->toHtml();?> <?php endif?> But there seems to be an issue that the text is not aligned as per the page. It is running into the corners and stretching on the screen. Any solutions for that? – Danny Feb 16 '18 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.