Jump to content

Specials block not hooking on header


Recommended Posts

I'm working on the default theme, and the specials block was hooked to the right column, I removed that and hooked it to the header

When you say header, what is the exact hook name you used, header of pages? This hook is the head element section of the every page and hence is not displayed, in addition, specials block already hooks header for its CSS so it should be on that hook by default.

 

Go to Back Office > Modules > Positions and select Specials block from the 'Show' drop down field and make a not of all the hooks at which the block shows, and post here.

Link to comment
Share on other sites

When you say header, what is the exact hook name you used, header of pages? This hook is the head element section of the every page and hence is not displayed, in addition, specials block already hooks header for its CSS so it should be on that hook by default.

 

Go to Back Office > Modules > Positions and select Specials block from the 'Show' drop down field and make a not of all the hooks at which the block shows, and post here.

 

 

Hi, and thank you for your reply!

 

Yes, the specials block is hooked to Header of pages and Right Column.

 

What is the use of having a hook called header if nothing shows in it? And what is the difference between header of pages and top of pages?

 

Thanks!

Link to comment
Share on other sites

What is the use of having a hook called header if nothing shows in it?

A header may mean different things to a programmer and designer. In prestashop header hook is for hooking <header> HTML element of the page, nothing in this element displays in browser canvas (there are exceptions but not important for topic at hand).

 

And what is the difference between header of pages and top of pages?

top of the pages hook is probably what you want, it is the section at the top of the page, i.e. topmost content in the browser canvas, what a designer may call a header.

  • Like 1
Link to comment
Share on other sites

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...