Jump to content

disable left column on homepage only?


Recommended Posts

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 by patrick81 (see edit history)
Link to comment
Share on other sites

Maybe I'm not clear. This is my current prestashop homepage. 

 

vmk4.jpg

 

 

My goal is to make this homepage like this.....

 

x6o3.jpg

 

 

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...

 

t081.jpg

Edited by patrick81 (see edit history)
Link to comment
Share on other sites

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

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 by patrick81 (see edit history)
Link to comment
Share on other sites

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!  :D

{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

×
×
  • Create New...