Jump to content

Site 1 column / Products 2 column


Recommended Posts

Hi all
1-) i want to make
whole site 1 column
but products / product list / product details center and right column

how can i show right column only at product pages ?

2-) i want to make header and footer full width (100%)

3-) i want to add external pages to prestashop


do you have any idea
thanks alot

Link to comment
Share on other sites

1) To remove the left column, change lines 54-57 of header.tpl in your theme's directory (in PrestaShop v1.3.1) from:

<!-- Left -->

   {$HOOK_LEFT_COLUMN}



to:

{*<!-- Left -->

   {$HOOK_LEFT_COLUMN}
*}



To display the right column only on product pages, change lines 4-8 of footer.tpl in your theme's directory from:

<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}




to:

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

                   {$HOOK_RIGHT_COLUMN}


{/if}



You should then modify global.css to adjust the widths of the columns. Change lines 213-217 from:

#center_column {
   width: 556px;
   margin: 0 0 30px 0;
   overflow: hidden
}



to:

#center_column {
   width: 980px
   overflow: hidden
}
body#category #center_column, body#product #center_column {
   width: 768px
}

Link to comment
Share on other sites

rocky thank you very very much for your answer
its worked very well

if not too much headache ,, do you have any idea about 2 and 3 ?
header and footer full width (100%)
add external pages to prestashop

thank youv ery much again

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