deroxonweb Posted January 4, 2012 Share Posted January 4, 2012 Hello Sir/Madam, Could anyone teach me how to hide right column for more pages? I know how to hide the right column for 1 page by editing the footer.tpl and add the code: {if $page_name == 'product'}{else} <div id="right_column" class="column">{$HOOK_RIGHT_COLUMN}</div> </div> {/if} Now I wanna hide the right column for the category.php also, but I have no idea how to do it. Please give me a hand, thank you very much. Best regards, Derox Link to comment Share on other sites More sharing options...
deroxonweb Posted January 5, 2012 Author Share Posted January 5, 2012 Please advice and help how to solve this problem, I tried to do it at many ways, but I was failed to do it. Thank you very much. Link to comment Share on other sites More sharing options...
justinl Posted January 5, 2012 Share Posted January 5, 2012 This should work: {if $page_name == 'product' || $page_name == 'category'}{else} <div id="right_column" class="column">{$HOOK_RIGHT_COLUMN}</div> </div> {/if} Link to comment Share on other sites More sharing options...
deroxonweb Posted January 5, 2012 Author Share Posted January 5, 2012 Hi Justinl, Thank you very much for the advice and help. I solved the problem. Cheers ^^ Link to comment Share on other sites More sharing options...
doubleD Posted March 20, 2012 Share Posted March 20, 2012 For prestashop 1.4.7: {if $page_name != 'index' && $page_name != 'contact-form'}{else} <div id="right_column" class="column">{$HOOK_RIGHT_COLUMN}</div> </div> {/if} i.e. use && instead of || 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