Search the Community
Showing results for tags 'add hook'.
-
Hello! I'm hoping someone can help with positioning some modules, which may be either a hook problem, a CSS problem, or both. My setup: PS 1.5.3, two-column layout theme, responsive design. On the product page, when screen size is smaller than 959px, the displayLeftColumnProduct hook hides. The modules in this hook are Favorite Products, Blockwishlist and Send To A Friend, and don't show if you're not logged in. What I would like to do: When the screen size changes to smaller than 959px, I would like those modules to appear under the Add To Cart button (on right-hand side, displayRightColumnProduct) instead. Or at least just Favorite Products. I currently have a span class under the Add To Cart button that shows some big AddThis sharing buttons only when the screen is under 959px, perhaps I could take advantage of that in some way? Here's screenshots of a product page at different screen sizes (full, 959px and 519px) so you can see what it looks like logged in. Thank you in advance to anyone who can offer a little advice! Elaine
-
- favorite products
- screen size
- (and 8 more)
-
Ok, I've been through some articles on how to add a new hook, one of which is Julien Breux's.... But the articles are not complete or clear enough... In which files exactly do I need to place the code for the new hook? Let's say I want to add a new hook on the home page, to show a block right before the HOME hook... On index.tpl, I simply have the following code: {$HOOK_HOME} So I guess I will have to add something like {$HOOK_MYHOOK} just before this one (and after adding the new hook to the table "ps_hook") But what should I do next? My aim is to show the featured products block just after the top of the page and before the HOME block