Jump to content

How to remove left column from all the page just homepage?


Recommended Posts

Hi,

I would love to remove left column in prestashop 1.6, default-bootsrap from all pages and let it just in homepage of shop.

In order to do that i added this code in header.tpl on my default theme:

<div class="row">
{if isset($left_column_size) && !empty($left_column_size)}	
 {if $page_name =="index"}
<div id="left_column" class="column col-xs-12 col-sm-{$left_column_size|intval}">{$HOOK_LEFT_COLUMN}</div>
{/if}
						{/if}

It displayed just leftcolomn on homepage perfect! but i had a trouble about width of column center: look at  the picture in attachement.

In order to fix that i was lookin for colomn center in global.css but i didn't find it.

Please help me.

post-773158-0-67486800-1422529698_thumb.jpg

Link to comment
Share on other sites

hello

you can achieve it without touching theme files.

go to preferneces > themes and edit your theme.

 

you will see there option to enable / disable columns on selected page types.

just disable left column there.

 

it should work well then

Link to comment
Share on other sites

Tnahk you for your suggestion,

I tried what you said in post #4 but it dosn't work, i found cms and categories with value 0 and i changed to 1 in order to enabled but when i opened table meta lang i didn't find his id! i go back to the backoffice for checked but nothing happened!

You will find 3 images about that

Thank you.

 

post-773158-0-52614900-1422607149_thumb.png

post-773158-0-57780800-1422607168_thumb.png

post-773158-0-31431700-1422607174_thumb.png

Link to comment
Share on other sites

Hi again,

I added a new lines to database->table->meta_lang

id 28 and 29 twice because i have website multilangues.

Greate every things good for category and cms, now i'm going to add product also which has id 27, i understand now how it's work, thank you vekia.

 

post-773158-0-24339700-1422609183_thumb.png

Link to comment
Share on other sites

  • 7 months later...
  • 2 weeks later...
  • 4 years later...
On 1/29/2015 at 8:35 PM, vekia said:

hello

you can achieve it without touching theme files.

go to preferneces > themes and edit your theme.

 

you will see there option to enable / disable columns on selected page types.

just disable left column there.

 

it should work well then

Vekia - you are simply awesome. 

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