WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove adsense (blank white space at end of articles) (9 posts)

  1. smw03
    Member
    Posted 1 year ago #

    A few months back Google Adsense disabled my account for some unknown reason. Now there is a blank white space at the end of my posts, and sometimes an Ad will appear accidentally.

    I had someone else put the code in there so they showed up at the bottom of my posts, but I'm not sure where the code is or how to get it out of there.

    Does anybody know how I can remove this?

    The URL is goldandbluezone.com

  2. KristoferB
    Member
    Posted 1 year ago #

    umm.. I see Google Ads on your site below the posts..

  3. smw03
    Member
    Posted 1 year ago #

    Yeah, sometimes they appear. Either way I dont get paid for them if ppl click them.

    I just dont know where the code is so I cant remove it. I'm afraid to mess something up if I mess around with it too much.

  4. KristoferB
    Member
    Posted 1 year ago #

    it's most likely in single.php (Single Post)

    Appearance -> Editor -> single.php

    if it is, the delete all of this:

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-***********";
    /* RTT mainpage top */
    google_ad_slot = "********";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    the asterisks would be numbers for you of course..

    if it's not there, then there could be many other options

  5. smw03
    Member
    Posted 1 year ago #

    the only thing in single.php is this:

    <?php get_header(); ?>
    <?php get_template_part('loop', 'single'); ?>
    <?php get_footer(); ?>

  6. KristoferB
    Member
    Posted 1 year ago #

    then it's in loop.php

    or it could also be a plugin that inserts ads into the site, like Post Foooter

  7. smw03
    Member
    Posted 1 year ago #

    It was a plugin. Can't believe I didn't realize that. Feel pretty stupid. haha

    Thanks for your help!

  8. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    If you can update the theme or just replace the theme with an unedited copy the ads will be automatically removed.

  9. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    It was a plugin.

    Which plugin? I could not find any plugin for inserting ads.

Topic Closed

This topic has been closed to new replies.

About this Topic