Title: Adsense code being changed
Last modified: August 30, 2016

---

# Adsense code being changed

 *  [REGGSenterprises](https://wordpress.org/support/users/cruisenewsandreviews/)
 * (@cruisenewsandreviews)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adsense-code-being-changed/)
 * When I enter my adsense code in any of the setting boxes then hit save, it changes
   the entire code and causes a portion of the code to show on site and not the 
   adsense ad.
    Why is it not saving the adsense code as I paste it?

Viewing 1 replies (of 1 total)

 *  [mrlane](https://wordpress.org/support/users/mrlane/)
 * (@mrlane)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adsense-code-being-changed/#post-6371054)
 * They have code removing the script commands
 * Go to appearance / Editor find Theme Functions
    aka functions.php Put this just
   below the php tag.
 *     ```
       global $allowedposttags;
        $allowedposttags['script'] = array(
            'type' => array(),
            'src' => array()
        );
       ```
   
 * It fixes this issue, but may cause issues with posts, allowing
    people to put
   script tags in your posts.

Viewing 1 replies (of 1 total)

The topic ‘Adsense code being changed’ is closed to new replies.

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

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [mrlane](https://wordpress.org/support/users/mrlane/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/adsense-code-being-changed/#post-6371054)
 * Status: not resolved