Title: Adding Adsense code to wordpress site
Last modified: January 9, 2020

---

# Adding Adsense code to wordpress site

 *  Resolved [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/)
 * Hello, when i copy n paste my adsense code to my site, using the headers and 
   footers plug-in option, after clicking save it only takes me to the hompage of
   my site. PLEASE ASSIST !!!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-adsense-code-to-wordpress-site%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12308313)
 * Hi lunzalu,
 * thanks for opening a new thread.
 * > after clicking save it only takes me to the hompage of my site
 * It read as if you are clicking on a save button in the backend and are then automatically
   redirected somewhere else. Is that correct?
 * Thanks,
    Thomas
 *  Thread Starter [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12310871)
 * Yes, i am using headers and footers, so when i click save, instead of getting‘
   code saved successfully’ , it opens my homepage.
 *  Thread Starter [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12310974)
 * What does that do?
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12311805)
 * > What does that do?
 * Do you mean what causes this?
 * I have no idea and never seen this before. It is maybe some custom code or another
   plugin. I would definitely like to see this but need to know if it is a conflict,
   first.
 * You can follow [this tutorial](https://wpadvancedads.com/plugin-theme-conflicts/)
   to learn how to test for plugin and theme conflicts.
 * Let me know when you found the culprit.
 * Thanks,
    Thomas
 *  Thread Starter [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12319717)
 * Done the health check – no conflict
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12319821)
 * Thanks. Just to be sure, you disabled all other plugins and even tested a default
   theme and the issue is always there?
 * Thanks,
    Thomas
 *  Thread Starter [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12322559)
 * Am now getting ‘page not found’ error
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12322570)
 * Hi lunzalu,
 * You probably disabled something that provided some content. Does the option in
   Advanced Ads work now? I know that is not the state in which you want to keep
   your site. Just knowing if another plugin or theme causes the conflict would 
   help.
 * Thanks,
    Thomas
 *  Thread Starter [lunzalu](https://wordpress.org/support/users/lunzalu/)
 * (@lunzalu)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12322629)
 * From the site health, there’s this;
 * ‘Warning The optional module, imagick, is not installed, or has been disabled.’
 * could it be the problem ?
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12323992)
 * That warning is no problem. I actually don’t know which problems this could cause,
   but I am pretty sure that it is not related to ads. I get the same on most of
   my websites and ads work well.
 * Best regards,
    Thomas
 *  Plugin Author [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * (@webzunft)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12352087)
 * Hi [@lunzalu](https://wordpress.org/support/users/lunzalu/),
 * I hope you are well.
 * It seems that you were not the only one with this problem and that it came down
   to a bug in the OneSignal Push Notifications plugin. That plugin should have 
   received an update with a fix by now.
 * Please let me know if you are still experiencing problems when saving ads, though.
 * Thanks,
    Thomas

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Adding Adsense code to wordpress site’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

## Tags

 * [adsense code](https://wordpress.org/support/topic-tag/adsense-code/)

 * 11 replies
 * 2 participants
 * Last reply from: [Thomas Maier](https://wordpress.org/support/users/webzunft/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-wordpress-site/#post-12352087)
 * Status: resolved