Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Home Page / Different Layout

Home Page / Different Layout

Locked

Views: 2,595

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Jun 2007, 2:12 PM
#1
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Home Page / Different Layout

I know this has been asked in a handful of threads, but I am still unclear:

  1. How do I override the full layout on the homepage ONLY while leaving the rest of the site the same? (I'm on 1.3.7)

I've got the override system working great. I can modify the site exactly as needed. I have the override for the css on the homepage (index_home.css), and that is working.

But... is there an equivalent to the tpl_main_page.php that is for the homepage only? If not, is there a way to make it such? I need somewhere to put the divs and the html to call that css file to make the layout work properly.

Any help is highly appreciated. Thank you!

8 Jun 2007, 2:56 PM
#2
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: Home Page / Different Layout

This appears to have solved my problem. Woohoo!

 * For customizing, this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * - make a directory /templates/my_template/privacy<br />
 * - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />
 * <br />
15 Jun 2007, 4:15 PM
#3
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: Home Page / Different Layout

Ok. I'm back. After much customization, the homepage looks exactly how I want. I have an index folder inside my custom template and the css is being called from the css folder (index_home.css).

All good. However... when I go into the categories/subs/products, they have the same look as the homepage.

The EZpages I setup, DO NOT look the same. They are doing exactly what I want them to do. They take the layout and css from the template/common in my template folder.

I want the look from the EZpages on all the other pages. How can I do that?

Thanks in advance for any help. Let me know if you need further clarification.

15 Jun 2007, 5:38 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Home Page / Different Layout

A URL to your site would help us see the behavior better, and maybe see the cause...

15 Jun 2007, 6:09 PM
#5
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: Home Page / Different Layout

Sounds like a good plan (site is still under construction, of course).

http://www.youtopiadesigns.com/index.php

The DESIGNS link takes you to the category page. The other links are all EZpages. Note: If I copy my index_home.css file contents into the main stylesheet, the DESIGNS page would look identical to the homepage. Hopefully that makes sense...

Thank you for your help.

21 Jun 2007, 5:53 PM
#6
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: Home Page / Different Layout

I'm still stuck on this one. Anyone have any possible solutions? Your help is MOST appreciated. Thanks!

26 Jun 2007, 4:22 PM
#7
mikeh00 avatar

mikeh00

New Zenner

Join Date:
Jun 2007
Posts:
1
Plugin Contributions:
0

Re: Home Page / Different Layout

I just created a folder called 'product_info' and added the template I wanted for product info pages to that folder.

26 Jun 2007, 4:56 PM
#8
jtcreate avatar

jtcreate

New Zenner

Join Date:
Mar 2007
Posts:
32
Plugin Contributions:
0

Re: Home Page / Different Layout

Thank you. Yes, I have done that as well (as a test) and it works well. The trouble I'm running into is on the main category page as they are all 'index' pages.