Forums / Templates, Stylesheets, Page Layout / Google ads in footer

Google ads in footer

Locked

Started by nenemaria on 1 Dec 2007, 11:53 PM · Views: 852

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
1 Dec 2007, 11:53 PM
#1
nenemaria avatar

nenemaria

New Zenner

Join Date:
Jun 2007
Location:
England
Posts:
23
Plugin Contributions:
0

Google ads in footer

I want to add a google ads banner to the footer of my shop.
I presume I need to put the code in tpl_footer.php but where abouts do I put it?

The code for it is a small javascript, so do I just add the whole script into the tpl_footer.php?

<script type="text/javascript"><!--
google_ad_client = "pub-9233685764471005";
//728x90, created 01/12/07 - long across
google_ad_slot = "8042717951";
google_ad_width = 728;
google_ad_height = 90;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

I presume it goes inbetween this somewhere? but I don't really know where!

<!--bof-navigation display -->
<!-- <div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php // echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>

<?php } ?>
</ul>
</div>
</div>  --> 
<!--eof-navigation display -->

I currently have eveything else in the footer disabled except the copyright and powered by Zencart link.

Thank you in advance,

Maria.

2 Dec 2007, 12:36 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,688
Plugin Contributions:
0

Re: Google ads in footer

Put your Google ad code in the footer using the banner manager - then you can turn it off or change it through the admin without touching any Zen Cart files.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Dec 2007, 12:47 AM
#3
nenemaria avatar

nenemaria

New Zenner

Join Date:
Jun 2007
Location:
England
Posts:
23
Plugin Contributions:
0

Re: Google ads in footer

Yes, I just tried that, but for some reason enabling the banner in the footer is causing a huge empty gap at the bottom of my page. I have the height of the page set to exactly 2000 px in the stylesheet, but the banner seems to change this.
My site can be seen here http://neonblackonline.co.uk/shop/

Edit: Figured that out now, no problem.
Thanks for the help.