• I can’t figure out how to remove google ads from my website without trashing the whole layout of the page. I inserted the code elements a while back and can’t remember what to remove and what to leave.

Viewing 9 replies - 16 through 24 (of 24 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter theloveco-mission

    (@theloveco-mission)

    I’m not having any luck. This is how I have tried inserting the code…

    [please mark any posted code – see https://codex.www.ads-software.com/Forum_Welcome#Posting_Code – or even better, use the https://pastebin.com/ ]

    <?php get_sidebar(); ?>
    <style type="text/css">
    h1.hidden {display:none;}
    </style>
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-6629725798987586";
    /* Like us on Facebook */
    google_ad_slot = "6541553565";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <style type="text/css">
    h1.hidden {display:none;}
    </style>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <?php get_footer(); ?>
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    <style type="text/css">
    h1.hidden {display:none;}
    </style>

    Will need to be in the <head> section and should be

    <style type="text/css">
    #ads {display:none;}
    </style>

    I think the wrapping HTML element had an id of ads, check what it is.

    Thread Starter theloveco-mission

    (@theloveco-mission)

    So do I go then to the Header template and insert the first code at the top of the <head> section and the other at the bottom of it?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Just the one in the header template
    This

    <style type="text/css">
    #ads {display:none;}
    </style>

    Thread Starter theloveco-mission

    (@theloveco-mission)

    I’ve tried putting that code in at the top of the section and at the bottom and there is no change in the page or in the googleads.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Add

    <style type="text/css">
    #ads {display:none !important;}
    </style>

    Thread Starter theloveco-mission

    (@theloveco-mission)

    This is insane bro! I can’t even turn the ads off in my googleadsense account! There’s no good help from google either. Any more ideas?? I need to get rid of these ads from my site. They are ruining its image now.

    Thread Starter theloveco-mission

    (@theloveco-mission)

    I got it. I blocked all categories of ads. Created a new ad the same size as the previous in text only and set everything to the same color including the blank ad space. Pasted that code into the space of the old code and I have nothing but a clean white space at the bottom of the pages….for now. Hopefully google doesn’t figure it out and somehow get me back!!

    Anyway that’s how I overcame googleadsense on my site if you ever encounter this again. 2 months of trying and this is all I could make work. Thanks for your help guys!

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘PLEASE HELP! I can't remove google ads’ is closed to new replies.