Jump to content

Remove left column in product pages


Recommended Posts

In header.tpl you can do: {if $page_name == 'product'} ...... the part that hook the left column ...... {/if}

 

It doesn't work :-S i already have that code in there with the page name 'index' so maybe it has something to do with it. When i put that code in there also, there will appear two left columns on my website :-S

Link to comment
Share on other sites

you have this is your header.tpl

{if $page_name != 'index'}

if you want to product page to be like index you can do

{if $page_name != 'index' || $page_name != 'product'} or {if $page_name != 'index' && $page_name != 'product'}

 

also you have this at the bottom

 

<!-- Center -->

<div id="center_column" class=" grid_5">

{/if}

<div id="center_column" class="{if $page_name != 'index'}grid_7{else}grid_9{/if}">

 

what are you trying yo achive, you have duplicate center colum id and classes.

try like this instead

 

<!-- Center -->

<div id="center_column" class="{if $page_name != 'index'}grid_7{else}grid_9{/if}">

{/if}

Link to comment
Share on other sites

  • 11 months later...
  • 1 year later...
×
×
  • Create New...