Zen Cart Logo

Home Page Layout

Views: 1,893

Results 1 to 17 of 17
14 Apr 2011, 2:52 PM
#1
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Home Page Layout

Hi everyone!
I am helping someone customize a zen cart website with a Zen Flavor template. I found some comments on how to move things around on a page in the index pages but when I look at the coding on each of the pages, it didn't seem to match what I wanted to do.
The website I am working on is http://madamecorzettes.com.
What I am trying to do is to take the section under the header where it has text and add a border of images. Specifically, it would be a column of photos on the left and right and then the text in the middle. Then I would like to have another wide banner below the text.
I didn't see a defined area in the files where I could add or move banners around and I know that there tends to be multiple files that affect the home page so I don't know if maybe I am missing something.
The alternative that I am considering is creating a single graphic banner with image on the left and right and text in the middle but that won't help too much with SEO.
Thanks for any input!
Vanessa

14 Apr 2011, 6:11 PM
#2
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Home Page Layout

Edit the includes/languages/english/html_includes/your-customtemplate-directory/define_main_page.php file.

Thanks,

Anne

14 Apr 2011, 7:23 PM
#3
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

That particular file has the following information:

##############################_
<a href="http://www.lulu.com/content/466605"><img src="images/large/e-start-book.gif" alt="get your manual today" title="Have you got yours yet? Join the 1000’s of Zen Cart users that have bought the only comprehensive owners manual !" /></a>

<p>This content is located in the file at: <code> /languages/english/html_includes/classic/define_main_page.php</code></p> <p>You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_main_page from the pulldown.</p> <p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p> ##############################

There was no directory/folder for the custom template either.
I tried looking in the following files for where I could move things around but didn't see anything in relation to banners:
tpl_index_default.php
tpl_main_page.php
tpl_index_categories.php

Thanks!

15 Apr 2011, 2:47 PM
#4
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

Does anyone know where else the file might be?

15 Apr 2011, 3:00 PM
#5
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Home Page Layout

picaflor-azul:

Edit the includes/languages/english/html_includes/your-customtemplate-directory/define_main_page.php file.

Thanks,

Anne

Thats the file alright:smile:

15 Apr 2011, 3:20 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Home Page Layout

There's no "where else" - the file can only work in the location described, either the default version or custom template version.

15 Apr 2011, 3:20 PM
#7
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Home Page Layout

Have you contacted the template author for help?

Thanks,

Anne

15 Apr 2011, 3:29 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Home Page Layout

From view source: > <!-- hsyong hide sidebars on home page -->This is one of the templates where the designer has severely modified what is able to be done, in some cases by deleting code instead of setting flags as standard practice suggests.

15 Apr 2011, 3:53 PM
#9
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

So it sounds like unless I want to get into recreating the page from scratch, that I should probably just create the images with text.
Thanks!

15 Apr 2011, 5:27 PM
#10
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

picaflor-azul:

Have you contacted the template author for help?

Thanks,

Anne

Yes, but he just directed me to the file directories. That didn't help!

12 May 2011, 11:15 PM
#11
jviney avatar

jviney

New Zenner

Join Date:
May 2011
Posts:
28
Plugin Contributions:
0

Re: Home Page Layout

Vanessa, I really like the layout of your page...what template did you use?
jviney

12 May 2011, 11:40 PM
#12
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

Thanks! It is a pemium theme (2B I think) from ZenFlavor.com. Plus some serious modifying! I am glad you like it! It is my first Zen Cart modification.

13 May 2011, 12:06 AM
#13
jviney avatar

jviney

New Zenner

Join Date:
May 2011
Posts:
28
Plugin Contributions:
0

Re: Home Page Layout

Thanks!:D

13 May 2011, 1:02 AM
#14
vanessac avatar

vanessac

New Zenner

Join Date:
Jan 2011
Posts:
18
Plugin Contributions:
0

Re: Home Page Layout

Sorry! I thought I was responding to a different question about a client's theme. This new one is Andover Modern which is a free one from https://www.picaflor-azul.com. I am hoping it helps with the product description problem I was having with the other template.
The other site I modified is http://madamecorzettes.com and that is the one from ZenFlavor.

13 May 2011, 11:44 PM
#15
jviney avatar

jviney

New Zenner

Join Date:
May 2011
Posts:
28
Plugin Contributions:
0

Re: Home Page Layout

Got it! thanks!

14 May 2011, 8:36 AM
#16
ssuunnyy18 avatar

ssuunnyy18

New Zenner

Join Date:
May 2011
Posts:
10
Plugin Contributions:
0

Re: Home Page Layout

Hi i am new to zencart and i am having trouble to find the code of tpl_main_page.php and tp_header.php of my index page

all other pages else index page are linked in my theme common folder that contains tpl_main_page.php and tpl_header.php

I am struggling so much to find the code of that thingh?? please help....

14 May 2011, 12:28 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: Home Page Layout

If your template folder does not contain a particular file that you want to modify, copy that file from the /template_default/ folder to the same location under /your_template/. Then you can edit as you please.

If you are wanting a separate version of these files for the index pages, you can make a folder like /includes/templates/your_template/index/ and put a copy of tpl_main_page.php in it.