I Need A "Hide Ads" PHP Script!

by Okoji Banned
4 replies
Hi friends,

I have a landing page attached to my blog. The problem I have is that my google ads shows up on this landing page and that is very distracting.

I am looking for a script or code that can hide google ads on a particular page.

On, request, I may add the link here if you want to see it.

Thank you,
Okoji
#hide ads #php #script
  • Profile picture of the author awebforyou
    where is it called in the code - just don't call it on that page.

    if it's a template then assign a name to that page and then use a if statment to check the page before showing the google ads.

    Esther
    web programmer
    web programmer-eshops-custom database solutions-Awebforyou
    {{ DiscussionBoard.errors[4013716].message }}
    • Profile picture of the author Okoji
      Banned
      Hi,

      Thank you for your reply. This is a wordpress blog and the google ads is placed there using a plug in. The landing page I use is "Premise".

      If you can provide a script that I will add on the header of the landing page, that will be very fine.

      Thank you.
      {{ DiscussionBoard.errors[4014210].message }}
  • Profile picture of the author hawaiiwebdesigner
    very easy... look for the div that contains the ad and hide it with css
    something like
    .home #ads {
    display:none;
    }
    {{ DiscussionBoard.errors[4049024].message }}
    • Profile picture of the author Okoji
      Banned
      Thank you so much. I was able to fix this by using a another plugin and it is working for me.

      Cheers!
      {{ DiscussionBoard.errors[4049519].message }}

Trending Topics