Eickhardt Posted May 22, 2015 Share Posted May 22, 2015 Greetings Prestausers, I cannot for the life of me figure out how to place a "!Sliders Everywhere!" module before my home page product Tabs. I am currently modifying a 1.6 default theme. On the 1.6 default theme, there is a slider before/above the tabs. I have removed the default slider, and installed !Sliders Everywhere! instead, but I'm unable to hook it to be displayed above/before the "displayHomeTab" hook. If I put it in the "Top column" hook, I get the desired result, but it is now displayed on all pages. I only want it disaplayed on the front page. My apologies if I have overlooked something obvious, but I have searched the internet to no avail. Thank you! Link to comment Share on other sites More sharing options...
Paulito Posted May 22, 2015 Share Posted May 22, 2015 Hello Well, Top column is the one to choose, so, just unhook this module from all the other positions it hooks into: Back office > modules > Positions or am I barking up the wrong tree Paul Link to comment Share on other sites More sharing options...
Eickhardt Posted May 24, 2015 Author Share Posted May 24, 2015 (edited) Thanks for your reply Paulito! However, the Top column hook is called on all pages, so even if I remove !Sliders Everywhere! from all other hooks, it is still displayed on all pages in the top column. I have found another solution though. On this page: http://nemops.com/page-specific-prestashop-module/#.VWGodfmqpBc it is explained how to target specific pages from a Prestashop Module’s Hook. To accomplish my goal, I edited some code of the !Sliders Everywhere! module. The code I used specifically was put in homesliderpro.php and looked like this: public function hookdisplayTopColumn($params) { if ('index' != $this->context->controller->php_self) return false; return $this->generalHook('displayTopColumn'); } The added if statement prevents the module from running at all on all other pages than the front page (for the displayTopColumn hook ONLY). Apologies for asking a question there already was a solution for. Edited May 24, 2015 by Eickhardt (see edit history) 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