Jump to content

Remove right column from product pages


Recommended Posts

To hide the right column on product and category pages, change lines 4-8 (in PrestaShop v1.3.1) of footer.tpl in your theme's directory from:

<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}




to:

{if $page_name != 'product' AND $page_name != 'category'}
<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}


{/if}



Then add the following to your CSS to widen the center column on those pages:

body#product #center_column, body#category #center_column { width: 750px }



Change 750px to an appropriate width.

You may need to add to these changes if you want search results, new products, etc to also display without the right column.

Link to comment
Share on other sites

  • 11 months later...

I found the following two code changes are required (changed to 490):

#primary_block #image-block {
   border: #d0d1d5 solid 1px;
   height: 490px;
   width: 490px




#primary_block #image-block img#bigpic { 
   cursor: pointer; 
   height: 490px;
   width: 490px
}

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...