Title: Inserting html code rigth after tag
Last modified: August 16, 2017

---

# Inserting html code rigth after tag

 *  Resolved [edsbali](https://wordpress.org/support/users/edsbali/)
 * (@edsbali)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/)
 * Thank for this awesome plugin.
    I wonder if there any way to insert html code
   right after <body> tag. In “Advance settings” there are possible to enter html
   code in header and footer.
 * Regard,
    Editanka
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finserting-html-code-rigth-after-tag%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [fab70](https://wordpress.org/support/users/fab70/)
 * (@fab70)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9414514)
 * Hello,
    What code ? thank you,
 * Very cordially,
 * Fabian
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9415931)
 * First of all why would you want to do this?
 * Easiest way is to use the AMP editor to make your specific AMP page.
 * If you wish to automate it (i.e. it is the same for all similar page or post 
   types) then you will need to add an action in functions.php which places that
   html.
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9417146)
 * Hi [@edsbali](https://wordpress.org/support/users/edsbali/),
 * Where exactly you want to enter after body tag? Can you specify it?
    You can 
   check hooks also, we have hooks at many places for example: `ampforwp_header_top_design1
   ampforwp_header_bottom_design1 ampforwp_design_1_after_header` etc..,
 * If you can specify with an use case, I may be able to help you with a proper 
   solution.
 * Regards
    Marqas
 *  Thread Starter [edsbali](https://wordpress.org/support/users/edsbali/)
 * (@edsbali)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9417543)
 * I want to implement AMP Auto Text And Display Ads from Google Adsense Lab.
    Google
   said : 1. First, place this code in between the <head> and </head> tags: <script
   async custom-element=”amp-auto-ads” src=”[https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”></script&gt](https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js”></script&gt);
   2. Then place this code right after after the **<body>** tag: <amp-auto-ads type
   =”adsense” data-ad-client=”ca-pub-01234567890″></amp-auto-ads>
 * Regard,
    Editanka
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9420203)
 * Hi [@edsbali](https://wordpress.org/support/users/edsbali/),
 * We have created this ticket in our Github and we will add this in our next update.
 * reference: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1059](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1059)

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

The topic ‘Inserting html code rigth after tag’ 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/)

 * 5 replies
 * 4 participants
 * Last reply from: [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/inserting-html-code-rigth-after-tag/#post-9420203)
 * Status: resolved