How to modify and edit this getChildHtml functions because i want to add different html into footer section.

<?php echo $this->getChildHtml('before_footer') ?>
<?php echo $this->getChildHtml('footer') ?>
<?php echo $this->getChildHtml('before_body_end') ?>
<?php echo $this->getAbsoluteFooter() ?>

2 Answers 2


Go to your path_to_theme/layout and create a file called local.xml and have this code in it:

<?xml version="1.0"?>
  <refernece name="footer">
       <action method="setTemplate">

Now create file called path_to_theme/page/html/new_footer.phtml and have any html you want.

I would suggest you to look at path_to_theme/page/html/footer.phtml file to include some default attributes in your new file, so that you don't miss some important things.

Good luck.


Go to admin section System>Configuration>Advanced>Developer>Debug Then enable Template path hints. After this refresh your site frontend.

You will get the correct information from which theme your file is being loaded.

Then change the correct footer.phtml file.

For better knowledge read Themes hierarchy in magento

  • This suggests you change the footer.phtml inside of base which is not recommended practice.
    – Smartie
    Commented Sep 23, 2015 at 6:53
  • @Smartie where it's suggest for base ??
    – Arunendra
    Commented Sep 23, 2015 at 7:18
  • There is no suggestion about copying the template in to your own theme if the template from path hints is found in base/default. That is all :)
    – Smartie
    Commented Sep 23, 2015 at 8:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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