Jump to content

$HOOK_FOOTER Change footer content


Recommended Posts

Hi,
I am just a newbie in prestashop theme development. I am just developing a theme in prestashop 1.6. I have seen backend module position system where someone can change the position. But in my case I want that when someone will take this theme he doesn't need to change any thing. He will just put this theme in his themes folder and make it active and the changes will be done. 
 
Now I have a reference image for template and I want to make the theme like that. In this I have attached the reference image for footer screenshot. But in default prestashop 1.6 you can see the footer design is different. I want to make it like as my design. So for that I just checked footer.tpl of theme . There I can see only
 
<footer id="footer"  class="container">
<div class="row">{$HOOK_FOOTER}</div>
</footer>
 
All the things are coming from 
$HOOK_FOOTER

I don't know what is going behind $HOOK_FOOTER and how can I make changes of the content inside footer as per th referenced image.  So here my question is how to make change the footer content without module positioning from backend so that when someone takes the theme folder and installs it in his prestashop then his footer will be look exactly like the referenced image? Any help and suggestions will be really helpful. Thanks.

 

post-557967-0-65706400-1395838776_thumb.png

Link to comment
Share on other sites

 

 

I don't know what is going behind $HOOK_FOOTER

hook footer displays modules attached to displayFooter hook.

you can get list of modules attached to this hook under:

modules>positions

tab in your back office. Search there for "displayFooter" modules list. you will see there addons attached to this position.

 

each module has got own tpl file - you have to modify modules .tpl files, and if you want to change module appearance you can also change module positions in back office (modules > positions > displayFooter modules list)

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

how do i bring all the Modules on the footer to same Row. I have set the footer column count to 4.

Hooked 1) My account Block

             2) CMS block

             3) News Letter

             4) Fanpage Likebox free(by MyPresta.eu)

First 3 modules occupies the 3 column, but the Likebox goes to next row instead occuping 4th column.

FreeFanpage Likebox Free
Link to comment
Share on other sites

  • 5 weeks later...
  • 8 months later...

Hi,

I wish to ask a question much similar to the one asked by @kavigullu26 above.
I know very well that I can manage modules in this hook under modules > positions tab in back office.
How if I have to reposition them? (say if I have to move the social networking block to the bottom of the footer, instead of displaying it in the top of th footer)

Link to comment
Share on other sites

×
×
  • Create New...