Title: Adding AdSense verification code
Last modified: November 13, 2018

---

# Adding AdSense verification code

 *  Resolved [timppa123](https://wordpress.org/support/users/timppa123/)
 * (@timppa123)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/adding-adsense-verification-code/)
 * Hello,
    I’m trying to activate my adsense account, and it asks me to add the 
   verification code in the head element. I used the ‘insert headers and footers’
   plugin for that. I added it in the head section obviously. My account still hasn’t
   been verified though. Am I doing something wrong? I also tried the ‘Code Snippets’
   plugin, as you suggested in one of the forum posts, but this gives me a fatal
   error when I try to save the code.
 * Thanks in advance!

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

 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/adding-adsense-verification-code/#post-10877733)
 * Hi there,
 * That should work.
 * For a code snippet, try this:
 *     ```
       add_action( 'wp_head', function() {
           ?>
   
               Your code in here
   
           <?php
       } );
       ```
   
 *  Thread Starter [timppa123](https://wordpress.org/support/users/timppa123/)
 * (@timppa123)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/adding-adsense-verification-code/#post-10878384)
 * Thank you Tom! I love how much support you guys give for this theme, even with
   the free version. Will be upgrading soon 🙂
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/adding-adsense-verification-code/#post-10880694)
 * Thanks! Glad I could help 🙂

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

The topic ‘Adding AdSense verification code’ is closed to new replies.

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

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/adding-adsense-verification-code/#post-10880694)
 * Status: resolved