Jump to content

Module not appearing in header or top of pages


Recommended Posts

I am not able to hook the modules in the header or the top of pages.

First of all, where is the mark up for "Top of pages" ? Where is this area in the page? I guess it is the "header" div

Secondly, I tried to hook the quick search and the log in module to this header div but they do not appear, not even in the mark up. I always have an empty



What I would like to do is having the search bar and the login module at the top of my page, kinda like this forum page, where the flags are. The header is now underneath my navigation bar, I might just move that at the top and then hook the modules there and style them.

Thank you for your help
Link to comment
Share on other sites

The "Header of pages" hook adds code before the closing </head> tag in header.tpl. It's used to add links to CSS and Javascript to all pages.

The "Top of pages" hook adds code inside the header_right div, which is displayed on the right side of the website's logo.

The search block and user info block should appear in the "Top of pages" hook, since that's the position they are in by default in PrestaShop's theme. I'm not sure why they aren't appearing. Perhaps a third-party theme issue?

Is your navigation bar hardcoded in header.tpl or is it a module?

Link to comment
Share on other sites

I am using a custom theme, the navigation bar is hardcoded.

I found out this theme uses a

as a container for the "Top of pages" modules.

I placed the Quick Search module there but doing so, the Category Block with my category tree disappears. I guess there is some Javascript conflict...
Link to comment
Share on other sites

  • 3 months 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...