Fran13 Posted June 17, 2013 Share Posted June 17, 2013 (edited) Hi, I deleted from de footer.tpl this code: <!-- Right --> <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> </div> because II do not want the right bar appears on home page. but i want appears on product page. How i do this? My PrestaShop is 1.5.4.1. Thanks. Edited June 18, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted June 17, 2013 Share Posted June 17, 2013 You could use something simple like <!-- Right --> {if $page_name != index} <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> {/if} </div> This will put the RH column on all pages except your homepage. Marty Shue Link to comment Share on other sites More sharing options...
Fran13 Posted June 18, 2013 Author Share Posted June 18, 2013 Carolina Custom Designs thanks for the help. But I just want the product page. What is the file I write this code? And how do I change the dimensions of center_column only on product page? Because the homepage center_column occupies the entire page and the product page I have to change to fit right_column. Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2013 Share Posted June 18, 2013 use this code: {if $page_name == product} <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> {/if} to change the size of the center column use the same if condition, use the different grid values. (class definition for center column) {if $page_name == product} grid_5 {else} grid_7 {/if} Link to comment Share on other sites More sharing options...
Fran13 Posted June 18, 2013 Author Share Posted June 18, 2013 Prefect. Thank you all. Link to comment Share on other sites More sharing options...
vekia Posted June 18, 2013 Share Posted June 18, 2013 you're welcome I'm going to mark this thread as solved. if you've got any questions related to this case - feel free to continue discussion here regards Link to comment Share on other sites More sharing options...
Recommended Posts