Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding static text to the main page only

Adding static text to the main page only

Locked

Views: 1,489

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Sep 2009, 2:44 AM
#1
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Adding static text to the main page only

I have added a banner in the footer 1 position and used an override to get it to show on the main page only, letting me change the image from the admin section, now the final thing i need to know is:

How can i add a few lines of static text below the banner position? This should stay put even when an image is changed.

I've tried looking for the main page that defines the overall layout, as well as searching through the forum here for answers but to no avail. I'm new to Zen Cart and am a bit lost with this one. Initially i tried uploading an image then linking to it through the HTML box in the banner section with the text underneath, but this negates uploading a new image rendering the whole purpose of it useless.

Any suggestions or help would be appreciated.

cheers

15 Sep 2009, 2:51 AM
#2
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Adding static text to the main page only

Hello,

Where exactly do you mean?

Just above the image on the main page?

Just below the top banner and above the menu?

15 Sep 2009, 4:15 AM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding static text to the main page only

I suppose you could try adding the text to includes/templates/YOUR_TEMPLATE/common/tpl_footer.php (where YOUR_TEMPLATE is the name of your custom template) and see if that works for you.

15 Sep 2009, 5:18 AM
#4
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Adding static text to the main page only

sorry about that, i probably didn't explain it all properly. The site i'm working on is at: http://sitesynth.com/sukas/store/

Where you see the main image there is two lines of text underneath it, currently the image is set as Footer banner 1, purely so it can be changed through the ADMIN section rather than ftp. The text below it is entered into the HTML section of the same banner.

All i want to do is make the text below the main image static on the main page, so as i upload a new image to the banner it is unaffected.

thanks for your replies thus far, i'll give the editing a go.

cheers

15 Sep 2009, 5:36 AM
#5
anaesthesiac avatar

anaesthesiac

New Zenner

Join Date:
Sep 2009
Location:
Gold Coast, Australia
Posts:
40
Plugin Contributions:
0

Re: Adding static text to the main page only

Thanks for your help, i found the bannerFour reference in the "/common/tpl_main_page.php" file and have updated the text.

cheers for taking the time to reply.

15 Sep 2009, 10:31 AM
#6
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Adding static text to the main page only

Glad you found it.

15 Sep 2009, 12:50 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding static text to the main page only

anaesthesiac:

Thanks for your help, i found the bannerFour reference in the "/common/tpl_main_page.php" file and have updated the text.

cheers for taking the time to reply.

I hope you're using the override system and saved your modified file in includes/templates/YOUR_TEMPLATE/common/