Jump to content

Edit $HOOK_HOME


Recommended Posts

Hi :) :) ,

 

I'm currently editing my prestashop template. I tried to edit the header.tpl but I was suprised to find a variable called "$HOOK_TOP" instead of HTML code.

 

I'm not able to find the definition of this HOOK variable.. Where can I find it and edit it?

 

FYI, I'm looking for that variable to delete some links of my header :P

 

Many thanks! :) :)

Romain NIO

Link to comment
Share on other sites

Hi,

You should not edit the variable directly, since that hook serves for modules to be positioned in the header. Instead, depending on which links you want to delete, you can try editing the various modules' .tpl files. Go to modules -> position. Locate the "top of pages" hook, and see which modules are there. Afterwards, go to a module's folder, copy the tpl file inside your theme's folder /modules/modulename, and edit that directly.

 

For more info about hooks: http://nemops.com/a-deeper-look-at-prestashop-hooks/

And about modules/positions: http://nemops.com/prestashop-modules/

And lastly, prestashop doc about overriding tpls: http://doc.prestashop.com/display/PS15/Overriding+default+behaviors

 

Cheers!

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...