Results 1 to 8 of 8
  1. #1
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Homepage theme/layout ONLY

    Hey guys I am using ZenCart 1.3.8a and i want to change the front page template.

    I tried messing with the tpl_index_default.php page, however this seems to only control the content inside the center column of the index page.

    I want my layout to only be changed on the front page. Having my boxes displayed horizontally so i can add some flash center peice on the front page.

    Anyone know the files and or methods to accomplish this?

    thanks so much!

    Mike

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Homepage theme/layout ONLY

    Have a look inside a copy of tpl_main_page.php as there is are many commented pieces of code to do several things

  3. #3
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Homepage theme/layout ONLY

    Kobra, thanks for the response!

    Would i put the file in /index/ or /home/ ?

    Thanks so much!

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Homepage theme/layout ONLY

    I believe your modified copy of the file would go into...

    includes/templates/YOUR-TEMPLATE/common/

    Rob

  5. #5
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Homepage theme/layout ONLY

    Yes, how ever I only want to override the homepage layout. Not every page.

    I tried throwing the file in /index/ this also over-rides the entire website layout including all sub-pages/category pages etc.

    I'm looking for the homepage layout *only*

    Thanks for help so far!! :)

    __EDIT__

    I have solved the problem.

    you need to have tpl_main_page.php inside of /common/ as well as /index/

    /common/tpl_main_page.php // entire site layout
    /index/tpl_main_page.php // homepage layout only
    Last edited by visua; 18 Mar 2009 at 04:04 AM.

  6. #6
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Homepage theme/layout ONLY

    Houston we have a problem!

    It seems as if the tpl_main_page.php in my /index/ also over-rides the category pages, but not my EZ-Pages or some of the login/signup pages.

    you can see the problem here thermafilm[dot]com

    the homepage has a top banner/focus image that should only be displayed on THAT page. Should i copy tpl_main_page into another folder to keep this from being overridden?

    Also, does anyone know if it is possible to re-arrange the boxes on the homepage only? I would like to have the information box above the 'shop' box on the front page, but on all others to be below the shopping box.

    Thanks so much.

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Homepage theme/layout ONLY

    Header image can be altered for home page only..see
    http://www.zen-cart.com/forum/showthread.php?t=55487

  8. #8
    Join Date
    May 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Homepage theme/layout ONLY

    Misty, thanks I will have to check that out.

    I am not sure what you mean by it is altered for the homepage only.

    I am just looking for control over the state in wich the homepage is being displayed so I can have a unique layout while at the index page.

 

 

Similar Threads

  1. v154 Store Gone Loopy! Shows Up With No Theme, Only Basic HTML
    By Blenderite in forum General Questions
    Replies: 3
    Last Post: 25 Sep 2015, 05:28 PM
  2. Layout help for estorenow theme
    By tomlcuneo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Feb 2013, 12:03 AM
  3. v150 Holiday theme layout problem
    By wmorris in forum Addon Templates
    Replies: 25
    Last Post: 15 Oct 2012, 01:21 PM
  4. v150 Product Layout Modification from a specific theme HELP
    By ronniek524 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Apr 2012, 02:05 PM
  5. Replies: 3
    Last Post: 28 Jun 2011, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg