patrick81 Posted January 21, 2014 Share Posted January 21, 2014 (edited) Is there a way I can disable the left column on homepage only and let it show everywhere else? I want to keep the homepage simple and clean and show the left column once I get to a different page. Can this be done? Edited January 21, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
patrick81 Posted January 21, 2014 Author Share Posted January 21, 2014 Looks like making a splash page would solve this. What is your best way to do this? Add splash.php and redirect in htaccess? Do I have to turn off friendly url? Is there a better solution? Link to comment Share on other sites More sharing options...
vekia Posted January 22, 2014 Share Posted January 22, 2014 take a look here: remove left column instead of {* <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> *} as it is described in the guide, use this: {if $page_name!="index"} <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> {/if} Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 (edited) It works!! but that doesn't hide the modules that were on the left column. they all merge in one column. Hmm Is there a way to disable the modules on th homepage but show all the other pages? My goal is quite simple. I just want the homepage simple and clean. Can this be done? take a look here: remove left column instead of {* <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> *} as it is described in the guide, use this: {if $page_name!="index"} <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> {/if} Edited January 29, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 (edited) Maybe I'm not clear. This is my current prestashop homepage. My goal is to make this homepage like this..... I just need to remove all modules from the homepage ONLY and show all other pages. I can use CSS to move the top menu remove the small logo but the problem is they are only one css file. Is there an easy way to seperate them and make that for homepage only? and keep everything else like this... Edited January 29, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 (edited) hmm there is no remove button? sorry ignore this. Edited January 29, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted January 29, 2014 Share Posted January 29, 2014 Why you don't use the hook function for modules ? Simply unhook all modules on the left for index.php. Your back-office -> modules -> hooks -> choose the respective module and set exception for it. Link to comment Share on other sites More sharing options...
vekia Posted January 29, 2014 Share Posted January 29, 2014 code that i pasted {if $page_name!="index"} <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> {/if} hide left column from homepage. if you want to hide other modules, you have to disable them in modules > positions tab (or define exceptions for these modules for "index" page) Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 (edited) Are you kidding me!!!?? I didn't know I could do the exception thing!! My god! Thanks for showing me that, selectshop!! It hides the left column automatically! Why you don't use the hook function for modules ? Simply unhook all modules on the left for index.php. Your back-office -> modules -> hooks -> choose the respective module and set exception for it. Why you don't use the hook function for modules ? Simply unhook all modules on the left for index.php. Your back-office -> modules -> hooks -> choose the respective module and set exception for it. Edited January 29, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 (edited) is there a way I can create a new css for homepage only. example, i want to remove the upper left logo that is on the homepage (using "display:none;") and I don't want to remove it from any other page? Edited January 29, 2014 by patrick81 (see edit history) Link to comment Share on other sites More sharing options...
patrick81 Posted January 29, 2014 Author Share Posted January 29, 2014 Thanks vekia! this may be not the best solution but it works great! It removed the logo on the index page only. I love this trick! {if $page_name=="index"} <style type="text/css"> .leo_logo {display: none;} </style> {/if} code that i pasted {if $page_name!="index"} <div id="left_column" class="column grid_2 alpha"> {$HOOK_LEFT_COLUMN} </div> {/if} hide left column from homepage. if you want to hide other modules, you have to disable them in modules > positions tab (or define exceptions for these modules for "index" page) Link to comment Share on other sites More sharing options...
Recommended Posts