Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to add text above footer

Trying to add text above footer

Views: 5,081

Results 21 to 27 of 27
19 Apr 2012, 3:47 PM
#21
strugglingnovice avatar

strugglingnovice

Zen Follower

Join Date:
Jun 2010
Location:
The great midwest... Well, okay, it's not so great, but I'm stuck here!
Posts:
218
Plugin Contributions:
0

Trying to add text above footer

Thanks for the fast reply. I never had any luck inserting the text into that default template. I tried it so many times last night, publishing it to my cherry_zen folder, too, and the text would not show up on the main page.

Can I not just leave it this way, it looks like I want it to.

Thanks again for helping me last night. I was SO confused.

19 Apr 2012, 3:48 PM
#22
gjh42 avatar

gjh42

Black Belt

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

Re: Trying to add text above footer

Copy /includes/templates/template_default/templates/tpl_index_default.php to /includes/templates/cherry_zen/templates/tpl_index_default.php and add your text near the end of that file.

19 Apr 2012, 3:51 PM
#23
strugglingnovice avatar

strugglingnovice

Zen Follower

Join Date:
Jun 2010
Location:
The great midwest... Well, okay, it's not so great, but I'm stuck here!
Posts:
218
Plugin Contributions:
0

Re: Trying to add text above footer

i did that with no luck.

cherry zen doesn't have that index file, so i just edited and copied the default template, the exact one you are telling me to do.

i have some errands to run, but i'll work with it when i get home. maybe i didn't do what i THOUGHT i did :blush:

thanks so much, hope you're having a good morning!

19 Apr 2012, 3:53 PM
#24
gjh42 avatar

gjh42

Black Belt

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

Re: Trying to add text above footer

If you're adding your content in the location you show in post 14, and you save the edited file correctly, it will show up.

6 Aug 2012, 10:51 AM
#25
jcash avatar

jcash

New Zenner

Join Date:
Apr 2012
Posts:
2
Plugin Contributions:
0

Re: Trying to add text above footer

Hi All,

Great advice from you guys.

I'm having a simliar problem. I'm looking to add more content to my home page site but want to do it at the bottom of the site just above the header.

As far as I can see the file to edit is tpl_index_default.php and save a copy into your template (so it overrides the default one)

BUT I'm not sure where to add the new content - what line and what code do I need.

Sorry if being a bit slow!

15 Aug 2012, 1:05 AM
#26
gjh42 avatar

gjh42

Black Belt

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

Re: Trying to add text above footer

You would probably want to add your content near the bottom of that file, just before or maybe just after the closing </div> of the center content. This assumes you want the new content only on the home page. If you want it on all pages, you would need to use a different file depending on your exact needs.

And be sure to save your edited file in a template override folder and not in /template_default/, so your changes are not erased when you upgrade to a new version of Zen Cart. If you are not familiar with the template override system, study the tutorials on it.

20 Aug 2012, 6:16 AM
#27
infoleather avatar

infoleather

New Zenner

Join Date:
Aug 2012
Location:
New York
Posts:
2
Plugin Contributions:
0

Re: Trying to add text above footer

If you do not file a customized version of Zen car will use the default version.