Title: Custom Code Being Stripped Off
Last modified: August 16, 2019

---

# Custom Code Being Stripped Off

 *  Resolved [Malvyn](https://wordpress.org/support/users/insee77/)
 * (@insee77)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/custom-code-being-stripped-off/)
 * Hi,
 * I have this custom code from MGID for displaying AMP in-article native ads:
 *     ```
       <amp-ad width="600" height="600" layout="responsive" type="mgid" data-publisher="**********" data-widget="******" data-container="******ScriptRoot******" ></amp-ad>
       ```
   
 * But after I save or publish it, the codes are being stripped off to:
 * `<amp-ad width="600" height="600" type="mgid"></amp-ad>`
 * Is there any way I can insert the custom code without being stripped off?
 * Thanks in advance.
 * Regards,

Viewing 1 replies (of 1 total)

 *  Plugin Author [Magazine3](https://wordpress.org/support/users/magazine3/)
 * (@magazine3)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/custom-code-being-stripped-off/#post-11840501)
 * I’m extremely sorry for this. I have added this in our list: [https://github.com/ahmedkaludi/ads-for-wp/issues/227](https://github.com/ahmedkaludi/ads-for-wp/issues/227)
 *  I will make sure that we will fix this issue for you in the next update.

Viewing 1 replies (of 1 total)

The topic ‘Custom Code Being Stripped Off’ is closed to new replies.

 * ![](https://ps.w.org/ads-for-wp/assets/icon-256x256.png?rev=1919470)
 * [Easy Google Adsense and Banner Ads Manager - AdsforWP](https://wordpress.org/plugins/ads-for-wp/)
 * [Support Threads](https://wordpress.org/support/plugin/ads-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/ads-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ads-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ads-for-wp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Magazine3](https://wordpress.org/support/users/magazine3/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/custom-code-being-stripped-off/#post-11840501)
 * Status: resolved