Rosa Lynn Posted May 13, 2016 Share Posted May 13, 2016 Hello, I would like to have the banner block module only on the home page. I tried to edit the header hook and it doesn´t work and in fact I tried to unhook it from the displayheader hook, but it keeps showing in all pages of my shop. After this there are not more hooks to edit. How can I have the banner block module show only on the home page? Thank you. Link to comment Share on other sites More sharing options...
tdr170 Posted May 13, 2016 Share Posted May 13, 2016 All you neeed to do is go to modules, positions find the banner block in displayHeader then on the right click edit. You will now see a list of exceptions add all except Index and save the banner should now only show on the home page. Before loading the page turn cache off and clear, turn force compile on, once the page loads as expected you can turn cache back on and force compile on. If you unhooked from header you will need to reset the module. Link to comment Share on other sites More sharing options...
Rosa Lynn Posted May 13, 2016 Author Share Posted May 13, 2016 I did, but it still shows in all pages... As I explained, when I unhook it from the displayheader hook (and it is the only hook where the banner block shows) it keeps showing in all pages, so it may mean that editing the display header does not work, because something else over rides it... Any other thoughts on how to proceed? Thanks Link to comment Share on other sites More sharing options...
SupportPS Posted May 13, 2016 Share Posted May 13, 2016 Hello. Add to your global.css file (located in themes/folder your_theme_name/css/ ) next code: header .banner {display: none;} #index header .banner {display: block;} 1 Link to comment Share on other sites More sharing options...
Rosa Lynn Posted May 13, 2016 Author Share Posted May 13, 2016 Thank you, it works very well!! Thank you so much!! Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2016 Share Posted May 14, 2016 As I explained, when I unhook it from the displayheader hook not displayHeader but from displayBanner hook. Link to comment Share on other sites More sharing options...
Rosa Lynn Posted May 15, 2016 Author Share Posted May 15, 2016 what do you mean? Link to comment Share on other sites More sharing options...
vekia Posted May 15, 2016 Share Posted May 15, 2016 what do you mean? i mean that you said that you unhooked this module from "displayHeader" hook. in fact, this module uses displayBanner hook not displayHeader. so if we dont want it on homepage, we have to edit module placement settings on list of modules called "displayBanner" Link to comment Share on other sites More sharing options...
Rosa Lynn Posted May 15, 2016 Author Share Posted May 15, 2016 Out of the box I can only see in the back office this module hooked in displayheader hook. Only here and weather I unhook it or nor makes no difference in where it appears (it makes a difference weather it keep its original size or not). On the other hand the hook displaybanner that you mention does not appear in the back office, so this module only shows that it is hooked in displayheader. Where can I see this mysterious hook that you are talking about (displaybanner)? Link to comment Share on other sites More sharing options...
Alexander Firsov Posted January 9, 2021 Share Posted January 9, 2021 It's a matter of different Prestashop versions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now