Support » Everything else WordPress » Adding Google Adsense Under Footer

  • Resolved chenblog

    (@chenblog)


    Hi, I’m having trouble setting google adsense underneath the menu on my webpage at http://www.chenblog.net. When I place the ads in the footer, it appears above my menu and it doesn’t look very pleasant.

Viewing 6 replies - 1 through 6 (of 6 total)
  • have you used html around it to center it?

    And are you sure your using it under the footer border, or over it? as that could be the problem.

    The way I display google ads is by adding the adsense code to a text widget in which I can move into a sidebar or footer. If you click on my website now, you can see what I mean. If there is any other way that I can add an adsense ad, please let me know.

    Rather than using a widget, you should be able to place the code directly in the footer where you want it. You can locate and edit the file at Appearance|Editor or use FTP.

    Okay so this is my footer:

    <?php
    /**
     * The footer Template
     *
     * @package WordPress
     * @subpackage minimatica
     * @since Minimatica 1.0
     */
     ?>
     		<footer id="footer">
    			<?php get_sidebar( 'footer' ); ?>
     			<nav id="access" role="navigation">
     				<?php wp_nav_menu( array( 'theme_location'  => 'primary_nav', 'container_id' => 'primary-nav', 'container_class' => 'nav', 'fallback_cb' => 'minimatica_nav_menu' ) ); ?>
    			</nav><!-- #access -->
    		</footer><!-- #footer -->
    	</div><!-- #wrapper -->
    	<?php wp_footer(); ?>
    </body>
    </html>

    —-

    where would I put my adsense code?

    This is the code:

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-8272375301326654";
    /* Footer Ad */
    google_ad_slot = "4547364820";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    I’ve figured it out. I just copied and pasted the code at the very bottom of the footer and that’s all it took. Thanks Gabe! 🙂

    You’re welcome. Glad it all worked out for you. I agree that it looks much better there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Google Adsense Under Footer’ is closed to new replies.