Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding text to footer

Adding text to footer

Locked

Views: 7,140

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
18 Sep 2008, 1:41 AM
#1
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Adding text to footer

Hi
I know this is probably glaringly simple, but I'd like to add some text to my footer under the copyright & powered by zencart line

I've checked out the "How do I change the Copyright message in the footer?" tutorial, but not sure how to add additional text.

thanks
S

18 Sep 2008, 4:45 AM
#2
straw avatar

straw

New Zenner

Join Date:
Feb 2007
Posts:
30
Plugin Contributions:
0

Re: Adding text to footer

Go into /includes/templates/YOURTEMPLATE/common/tpl_footer.php. Put your changes after > <!--eof-banner #5 display --> It is at the bottom of the file.

Add text, pics, etc.....

18 Sep 2008, 10:30 PM
#3
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Adding text to footer

Thanks Straw for your reply.

My file doesn't have that statement at the bottom; this is what I have:

<?php /** * Common Template - tpl_footer.php * * 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_footer.php to /templates/my_template/privacy/tpl_footer.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_footer = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_footer.php 3183 2006-03-14 07:58:59Z birdbrain $ */ require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); ?>

<?php
if (!$flag_disable_footer) {

?>

<div id="footer">
<div class="side_left">
<div class="side_right">
<div class="side_top">
<div class="side_bot">
<div class="left_top">
<div class="right_top">
<div class="left_bot">
<div class="right_bot">
<div class="inside_footer">
<div class="column">
<div class="indent">
<?php echo zen_image(DIR_WS_TEMPLATE.'images/cards.jpg'); ?>
<!-- GeoTrust True Site [tm] Smart Icon tag. Do not edit. -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"
SRC="//smarticon.geotrust.com/si.js"></SCRIPT>
<!-- end GeoTrust Smart Icon tag -->
</div>
</div>
<div class="column_1">
<div class="indent">
<span>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"><?php echo HEADER_TITLE_CATALOG; ?></a><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>

<?php } ?>
</span><br />
<?php echo FOOTER_TEXT_BODY; ?> <a href="<?=zen_href_link(FILENAME_PRIVACY)?>"></a>
</div>
</div><br class="clear" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<?php } // flag_disable_footer ?>

So sorry for my ignorance :blush: do I have to add the statement so that I can add text?

Many thanks
S

19 Sep 2008, 3:15 AM
#4
straw avatar

straw

New Zenner

Join Date:
Feb 2007
Posts:
30
Plugin Contributions:
0

Re: Adding text to footer

Not a big deal. I assumed yours had that and was just using that as a marker to look for. You don't need it. Put your text under the last </div>. You could also place text above the first <div class= > if that looks better for what you are trying to accomplish.

I would also look at your css file to determine what all those div classes are for. Modifying those might be better since so many were placed in the footer.

Post a link to your site so we can see what all you have going on and have a better insight.

19 Sep 2008, 3:36 AM
#5
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Adding text to footer

Hi Straw - I'll give that a go! - thank you

here is my site for greater insight (I still have heaps to go, tho)

http://partykitnkaboodle.com.au/zenstore/index.php?main_page=index

Thanks for your help - been on a giant learning curve ride & getting a bit brain-weary:blink:

S

19 Sep 2008, 6:04 AM
#6
straw avatar

straw

New Zenner

Join Date:
Feb 2007
Posts:
30
Plugin Contributions:
0

Re: Adding text to footer

I would also look at your css file to determine what all those div classes are for. Modifying those might be better since so many were placed in the footer.

Ignore that. I just looked at your site and those are just tied to images used to create the green background of the footer.

I like your overall look, bright and cheery.

Put your text above this last bit on the page:

.....text text text text.....

<?php
} // flag_disable_footer
?>
19 Sep 2008, 7:01 AM
#7
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

Re: Adding text to footer

Thank you Straw - I'll try that out

  • oh - and thanks so much for your comments :smile:
    Ditto for your site:clap:

all the best

S

23 Oct 2008, 2:26 AM
#8
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Adding text to footer

Id like to add a few images in the footer above the IP and copyright

do I open the tpl_footer.php and add this...

<!-- Begin add paypal and cc logos -->
  <tr>
  	<td align="center" width="100%">
<!--Spam Buster added by Kelly Keeton (www.eshopping4less.com)-->
<SCRIPT LANGUAGE="Javascript">
// Change User Name and Domain Name
username="chris32882"
at="@"
domainname="themccormickshop.com"
// End of Change
document.write("<A HREF='https://www.paypal.com/verified/pal="+username+""+at+""+domainname+"'><img src='http://www.paypal.com/en_US/i/icon/verification_seal.gif' border='0'></a>")
</script>
	</td>
  </tr>
  <tr>
        <td valign=top align=center><img src="https://www.paypal.com/en_US/i/logo/logo_ccVisa.gif" border=0 alt=" Visa"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccMC.gif" border=0 alt=" Mastercard"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccDiscover.gif" border=0 alt=" Discover"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccAmex.gif" border=0 alt=" American Express"><wbr><img src="https://www.paypal.com/en_US/i/logo/logo_ccEcheck.gif" border=0 alt=" eCheck"></td>
  </tr>
<!-- End add paypal and cc logos -->

above...

<!--bof-ip address display -->
<?php
if (SHOW_FOOTER_IP == '1') {
?>
<div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . '  ' . $_SERVER['REMOTE_ADDR']; ?></div>
<?php
}
?>
<!--eof-ip address display -->

website is below :)

23 Oct 2008, 7:39 AM
#9
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Adding text to footer

I figured it out, it was quite easy after all

This is what I did

I made a PayPal Transparent logo with PhotoShop CS3 (also uploaded it to contributions)

Keep in mind you can do this for Text as well :)

I edited my stylesheet.css

Which is located in: includes/templates/CUSTOM/css

find this line in the stylesheet.css file

/wrappers - page or section containers/

right below it add the following:

#paypalcc {
	text-align:center;
}

You can put this basicly anywhere you want, but what I did is put it in the footer.

Locate tpl_footer.php in includes/templates/CUSTOM/common

Under this line <!--eof-navigation display -->

add the following code:

<!-- Begin add paypal and cc logos -->
<div id="paypalcc">
<!--Spam Buster by Kelly Keeton (www.eshopping4less.com)-->
<SCRIPT LANGUAGE="Javascript">
// Change User Name and Domain Name
username="YourUserName"
at="@"
domainname="YourShopName.com"
// End of Change
document.write("<A HREF='https://www.paypal.com/verified/pal="+username+""+at+""+domainname+"'><img src='http://YourShopName.com/images/paypal.gif' border='0'> </a>")
</script>
  </div>
<!-- End add paypal and cc logos -->

Make sure to download the logo in Contributions labled "PayPal logo with CC" and upload to your sites image folder.

Thought I would share this with everyone. Thanks for the help!

23 Oct 2008, 7:42 AM
#10
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Adding text to footer

chris32882:

I figured it out, it was quite easy after all

This is what I did

I made a PayPal Transparent logo with PhotoShop CS3 (also uploaded it to contributions)

Keep in mind you can do this for Text as well :)

I edited my stylesheet.css

Which is located in: includes/templates/CUSTOM/css

find this line in the stylesheet.css file

/wrappers - page or section containers/

right below it add the following:

#paypalcc {
text-align:center;
}

> 
> You can put this basicly anywhere you want, but what I did is put it in the footer.
> 
> Locate tpl_footer.php in includes/templates/CUSTOM/common
> 
> Under this line <!--eof-navigation display -->
> 
> add the following code:
> 
> ```php
<!-- Begin add paypal and cc logos -->
<div id="paypalcc">
<!--Spam Buster by Kelly Keeton (www.eshopping4less.com)-->
<SCRIPT LANGUAGE="Javascript">
// Change User Name and Domain Name
username="YourUserName"
at="@"
domainname="YourShopName.com"
// End of Change
document.write("<A HREF='https://www.paypal.com/verified/pal="+username+""+at+""+domainname+"'><img src='http://YourShopName.com/images/paypal.gif' border='0'> </a>")
</script>
  </div>
<!-- End add paypal and cc logos -->

Make sure to download the logo in Contributions labled "PayPal logo with CC" and upload to your sites image folder.

Thought I would share this with everyone. Thanks for the help!

This probably wasn't a good place to post this, I should of posted this in another thread, can this be moved to a proper thread? Sorry :(

23 Oct 2008, 7:49 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Adding text to footer

Seems relevant to me - adding something to the footer area. Thanks for contributing the modified PP logo.

24 Oct 2008, 3:33 AM
#12
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Adding text to footer

gjh42:

Seems relevant to me - adding something to the footer area. Thanks for contributing the modified PP logo.

Not a problem I'm sure a lot of people will appreciate it :)