SkyHiRider Posted January 9, 2014 Share Posted January 9, 2014 I need a custom footer that is only displayed on the homepage. I know I can do it by adding an if selector directly into the footer.tpl template, but is there a way to create a custom hook that only works on the home page? Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2014 Share Posted January 9, 2014 in footer.tpl file you can create code like: {if $page_name=='index'} Hook::exec('myhomepagehook'); {/if} now you've got "myhomepagehook" which will work only on homepage 1 Link to comment Share on other sites More sharing options...
SkyHiRider Posted January 12, 2014 Author Share Posted January 12, 2014 Thanks vekia, you've been really helpful I have another problem now - my footer is nowhere to be found But that problem is mentioned in another topic to keep the forums clean: http://www.prestashop.com/forums/topic/300994-missing-footer/ Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2014 Share Posted January 12, 2014 i replied there i think that i found solution too. i marked this topic as solved. please continue discussion in topic mentioned by you above. with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts