- This topic has 7 replies, 3 voices, and was last updated 5 years, 8 months ago by Rodrigo.
April 26, 2015 at 7:42 am #102499John Retzer
After the latest theme update, my adsense plugin reports that I have to manually remove the existing ad on the front page to use adsense. I didn’t put that ad there, so it’s a rogue ad.
How do I find the template file to take a look and edit it out?April 26, 2015 at 7:51 am #102501TomLead DeveloperLead Developer
A rogue ad? Maybe check your content for that page? There’s no ads in the theme files unless you’ve been hacked or another plugin is inserting it.
Can you link me to your site so I can take a look?April 26, 2015 at 8:35 am #102504John Retzer
The site is http://www.miniaturewargaming.comApril 26, 2015 at 8:39 am #102505TomLead DeveloperLead Developer
Is it the top ad? If so, it looks like it would have to be in the header.php file.
Here’s the latest header.php file: https://themes.svn.wordpress.org/generatepress/188.8.131.52/header.php – definitely no ads.
Sometimes free hosts insert an ad like this into websites – are you using a free host by chance?April 26, 2015 at 8:43 am #102506John Retzer
Not on a free host. Using A2 Hosting.
Is header.php the file I need to find on my server to check? I’m new to WordPress after porting this site over to WP from Expression Engine, which I used for a decade. In EE, I could edit the template files from within the control panel as needed. Can’t find a similar thing on WP.April 26, 2015 at 8:44 am #102507TomLead DeveloperLead Developer
In your Dashboard, go to “Appearance > Editor” – you’ll see the header.php file in there that you can check.
If it’s been added in there, chances are you’ve been hacked.
If it’s not, try deactivating all of your plugins and see if it disappears. If it does, activate them one by one until it shows up again.
Are you using GP Hooks? If so, did you add the adsense code in the “Before Header” hook in “Appearance > GP Hooks”?April 26, 2015 at 8:57 am #102510John Retzer
Nothing there, so I’m going to go through the plugin deactivation/reactivation.
Thanks.June 27, 2015 at 8:48 am #116919Rodrigo
Even if “Insert Adsense” plugin hasn’t been updated in more than 2 years, it works perfectly for me.
In the last few days I wanted to change my main add on each page from a small one to a big one, and by only changing the HTML at Insert Adsense, all my pages changed at once. The other adds, stayed the same.
It does exactly what it proposes…and works perfectly on my bilingual site.
Here are examples of the same pages in two different languages:
http://foradazonadeconforto.com/como-escolher-e-comprar-seguro-de-viagem/ (Brazilian Portuguese)
Simple and great plugin.
- You must be logged in to reply to this topic.