In my Current Project there is requirement like this Extended footer for HOMEPAGE and normal footer for Other pages how can I get this.


1 Answer 1


actually this is easily solvable just by one line

put this code in your footer.phtml file above your footer div <div class="footer">

<?php $is_homepage = Mage::getBlockSingleton('page/html_header')->getIsHomePage();  ?>
<?php if($is_homepage): ?>
<!-- Homepage footer contents here -->

and end this after your footer div

<?php else: ?>

put your other pages footer contents here.....

<?php endif; ?>

hope this will solve your problem.

  • man thankyou this think worked for me.
    – dhoni7
    Nov 20, 2014 at 12:49
  • This won't work with the block cache on. Depending on what page you visit first you will see your code that should be on homepage on all pages or you won't even see it in the homepage
    – Marius
    Nov 21, 2014 at 7:42
  • but it is working for me dude.
    – dh47
    Nov 21, 2014 at 7:44

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.