Jump to content

<Solved > How to 2 Column Theme


Recommended Posts

Hello Friends,

 

I have installed Prestashop 1.5.4.1. I like to know how to make the default theme as 2 column.

 

Also not want to show columns on homepage except on other pages. Is that possible?

 

Will be great if anyone have any idea.

 

Thanks

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

Hi Paul,

 

Thanks for u r kind information. First part did successfully. But second part i.e. hide column on Index page not worked. Since to make 2 column theme we already did changes in header.tpl file. Now the codes of header.tpl & the given on that page are different. I think those codes are for prestashop 1.4 not for 1.5. Will be great if you have a look on it.

 

Thanks

 

my current header.tpl have below code at last section.

 

<!-- Header -->

<div id="header" class="grid_9 alpha omega">

<a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}">

<img class="logo" src="{$logo_url}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />

</a>

<div id="header_right" class="grid_9 omega">

{$HOOK_TOP}

</div>

</div>

<div id="columns" class="grid_9 alpha omega clearfix">

<!-- Left -->

{*<div id="left_column" class="column grid_2 alpha">

{$HOOK_LEFT_COLUMN}

</div>*}

<!-- Center -->

<div id="center_column" class=" grid_7 alpha">

 

Thanks

Link to comment
Share on other sites

Good morning

 

I am answering on Android so bear with me.

 

OK, so now you have 2 columns - Left and Centre or Right and Centre

 

The left column is in header.tpl - the right column is in footer.tpl

 

To stop a column showing you need, I believe, to add an 'if' statement to stop the column showing when the page loads

 

{If $ page_name !="index"} {/if}

 

Sorry I cannot be more helpful as I am not in front of a pc at the mo

 

Paul

 

 

{If

 

 

 

Link to comment
Share on other sites

Hello Vekia / Paul,

 

Thanks for your kind help. Your solution worked :)

 

I need one more help. How to remove space in between right column & product short description. Please find image for reference.

 

 

 

Please find product page too where I need to modify.

 

 

 

Thanks

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

Hello again

I know, I had the same problem. You will find that a lot of pages need stretcing to suit the 2 columns you have now.

 

Have a look at:

gadgetskunk.co.uk

 

All that needs to be done is change some css values. If you use chrome/firebug you will see which files/lines need changing

 

If you get stuck you can PM me in a couple of hours

 

or raise another topic if you cannot wait

 

Paul

Link to comment
Share on other sites

Hello Paul,

 

Will wait. No issue its not that much urgent.

 

Thanks

 

Hello again

I know, I had the same problem. You will find that a lot of pages need stretcing to suit the 2 columns you have now.

 

Have a look at:

gadgetskunk.co.uk

 

All that needs to be done is change some css values. If you use chrome/firebug you will see which files/lines need changing

 

If you get stuck you can PM me in a couple of hours

 

or raise another topic if you cannot wait

 

Paul

Link to comment
Share on other sites

Well, your product page is ok but you still have a lot to do

 

For instance, add a product to you cart and go to checkout.

 

The authentication needs stretching and for some reason I can still see the 'contact us and specials blocks' on the left

 

You really need to go through every page and check if it is ok

 

Paul

Link to comment
Share on other sites

×
×
  • Create New...