Title: Add AdCode in AMP plugin
Last modified: September 1, 2016

---

# Add AdCode in AMP plugin

 *  [alexmagier](https://wordpress.org/support/users/alexmagier/)
 * (@alexmagier)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/add-adcode-in-amp-plugin/)
 * How can i add follwing HTML for showing inRead video ads on my AMP sites:
 * <amp-ad width=300 height=220
    type=”teads” data-pid=”46213″ layout=”responsive”
   > </amp-ad>
 * Thx
    alexmagier
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

Viewing 1 replies (of 1 total)

 *  [neotrope](https://wordpress.org/support/users/neotrope/)
 * (@neotrope)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/add-adcode-in-amp-plugin/#post-7505896)
 * Have to do it with a function in functions.php to add the element to “footer”…
   or, you can try editing the template, or make child template per the docs. I 
   think you create amp folder in your theme folder, then put duplicate of the amp
   template in there with your added element where you want it ….
 * trial and error — my solution kept giving me validation errors, but worked; so
   still sorting that out over here.
 * No easy answer — but seems like there should be.

Viewing 1 replies (of 1 total)

The topic ‘Add AdCode in AMP plugin’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [neotrope](https://wordpress.org/support/users/neotrope/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/add-adcode-in-amp-plugin/#post-7505896)
 * Status: not resolved