Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Location
    England
    Posts
    23
    Plugin Contributions
    0

    Default 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?

    HTML Code:
    <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!

    PHP Code:
    <!--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. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Jun 2007
    Location
    England
    Posts
    23
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. How to center my google ads on footer?
    By sjbglx in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Dec 2010, 01:48 AM
  2. google ads
    By kaitshel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Jul 2009, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg