Title: code not appearing in HEAD section
Last modified: January 7, 2020

---

# code not appearing in HEAD section

 *  [charlie101](https://wordpress.org/support/users/charlie101/)
 * (@charlie101)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-not-appearing-in-head-section/)
 * I am trying to add the following script between the HEAD tag of AMP pages (since
   I manually add adverts in my functions.php file instead of using the plugin advert
   feature.)
 * <script async custom-element=”amp-ad” src=”[https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt](https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt);
 * I used the plugin’s Advanced Settings to add this script in the head section,
   but it doesn’t appear in the resulting HTML page’s source code? Any idea why?
 * Thanks

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-not-appearing-in-head-section/#post-12303153)
 * We have created a ticket for this bug. We will be fixing this in our future updates.
   
   Reference: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/4040](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/4040)
 *  Thread Starter [charlie101](https://wordpress.org/support/users/charlie101/)
 * (@charlie101)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-not-appearing-in-head-section/#post-12303452)
 * Ah okay so to confirm code not appearing in HEAD is a known issue then
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/code-not-appearing-in-head-section/#post-12319662)
 * This issue was already fixed. Can you please update our latest plugin version
   1.0.13 and clear cache and check once whether the issue is having or not.

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

The topic ‘code not appearing in HEAD section’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/code-not-appearing-in-head-section/#post-12319662)
 * Status: not resolved