Title: adding adsense code to header
Last modified: March 6, 2020

---

# adding adsense code to header

 *  Resolved [leso](https://wordpress.org/support/users/leso/)
 * (@leso)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-header-2/)
 * when I paste my AdSense code in the header from the Html section of the header
   components I get this part of the script displayed
 * (adsbygoogle = window.adsbygoogle || []).push({});
 * but the code works on other sections of the site

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

 *  [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * (@rodicaelena)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-header-2/#post-12556075)
 * Hi [@leso](https://wordpress.org/support/users/leso/),
 * Unfortunately, the AdSense code is more complex than a normal HTML code, as it
   contains `<script>` and other specific tags, that are not supported by the HTML
   component.
    We will look into a way of allowing AdSense code in the header in
   the next updates, but at this moment this is not possible.
 * Regards,
    Rodica
 *  Thread Starter [leso](https://wordpress.org/support/users/leso/)
 * (@leso)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-header-2/#post-12557044)
 * if there is any short term fix I will be glad to use it otherwise hope it will
   be considered in the next update, thnx for the feedback
    -  This reply was modified 6 years, 2 months ago by [leso](https://wordpress.org/support/users/leso/).
 *  [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * (@rodicaelena)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-header-2/#post-12560269)
 * Hi,
 * Unfortunately, I don’t have any quick fix at the moment. We’ll look into this
   for the next releases.
 * Regards,
    Rodica
 *  Thread Starter [leso](https://wordpress.org/support/users/leso/)
 * (@leso)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-adsense-code-to-header-2/#post-12562009)
 * okay. thnx

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

The topic ‘adding adsense code to header’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.4/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

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