webmining Posted April 1, 2013 Share Posted April 1, 2013 (edited) Hi,I'm not so good at english. I would like to know, I have a hook that has content only in two pages..how can this hook(div) not appear in the other pages..?What can i do..? Thanks a lot.. Edited April 1, 2013 by webmining (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted April 1, 2013 Share Posted April 1, 2013 There can many reasons for that. 1) You can choose to exclude modules from specific pages 2) You can hide with css right column, left column, footer on certain pages (prestashop has it as default for few pages) 3) You can manually edit template files or override php files and choose not to display certain hooked based on page name 4) Remember that displayHome hook is only for homepage Maybe there are more ways of doing it, so basically your question is too general to answer. Are you using default theme? Are you talking about right column, left column & footer if so check your entire global.css for: #left_column, #right_column, #footer for display: none Link to comment Share on other sites More sharing options...
webmining Posted April 1, 2013 Author Share Posted April 1, 2013 (edited) Thanks a lot..i use the deafult and i want to learn how to change it..Add hooks and add new modules.. I add a new hook and i want to seem it only in first and another one..and i don't want the new div to seem to the other pages.. How can i do the first one..? for example,if i put any thing up to slider and i have for this div height:150px.i want to lose to the other page that height and not empty there..:)Have you understood..? Edited April 1, 2013 by webmining (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted April 1, 2013 Share Posted April 1, 2013 (edited) I am sorry but I can't really understand what you asking. start with this tutorial just to understand hooks http://doc.prestasho...age+using+hooks when you say you added new hook did you really ment you created a new hook or you used prestashop standard hooks?. Prehaps it will be easier for you to get answer in a forum in your language, this site has a forum for every language. Edited April 1, 2013 by yaniv14 (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts