Jump to content

[SOLVED]main page single column


Recommended Posts

Well, seems everybody is busy to answer my question.

heres a question you guys might be able to answer me. Im new to prestashop and i have a basic knowledge of php and smarty. I've been playing around the cart and i cant find the code where to edit this:

{$HOOK_HOME}

I just want to change the layout of the main page.
but the rest of the page i want to stay at it is.

hope someone could aid me on this.

Thank you in advance

Share this post


Link to post
Share on other sites

I've finally figured it out.

to get rid of the left and right columns in the main page, i just put if statement in the header.tpl and footer.tpl.
I hope this the right solution but if the gurus has a better solution just post it here so newbies like me could follow.

Heres the code:

header.tpl
look for this code

<!-- Left -->

        {$HOOK_LEFT_COLUMN}



and change if to this


<!-- Left -->
  {if $page_name == 'index'}{else}

        {$HOOK_LEFT_COLUMN}

  {/if}





footer.tpl

look for this code

<!-- Right -->

     {$HOOK_RIGHT_COLUMN}


and change it to this

<!-- Right -->
  {if $page_name == 'index'}{else}

        {$HOOK_RIGHT_COLUMN}

  {/if}



Hope this helps

Share this post


Link to post
Share on other sites

Hi, i m prestashp new user as well. I install prestashop V 1.2. I need to know to edit the image and the content at the centre of the home page ? I can find the place to edit at the backoffice. could u advice ?

Regards,
Goldenbear

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More