Title: Ads code going under theme
Last modified: February 16, 2023

---

# Ads code going under theme

 *  Resolved [Adekiya joscor](https://wordpress.org/support/users/ajoscor/)
 * (@ajoscor)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/ads-code-going-under-theme/)
 * Whenever i paste and ad code like the one below.
 *     ```wp-block-code
       <div id="foremediaads-c5"></div><script type="text/javascript" async src="https://platform.foremedia.net/code/23798/c5"></script>
       ```
   
 * It automatically shows under the theme.. I placed one before content and they
   show under the theme instead of before content. What’s wrong and possible solution
 * [Screenshot attached](https://linksharing.samsungcloud.com/uZXVmNWPDVLZ)
    -  This topic was modified 3 years, 3 months ago by [Adekiya joscor](https://wordpress.org/support/users/ajoscor/).
    -  This topic was modified 3 years, 3 months ago by [Adekiya joscor](https://wordpress.org/support/users/ajoscor/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fads-code-going-under-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/ads-code-going-under-theme/#post-16478315)
 * Hello,
 * the plugin always inserts the code as configured. Please check the source code.
   Of course, where the ads appear depends mainly on the ad code. Very likely your
   ad code is designed/configured to insert ads there.
 * You can use debugging functions to diagnose insertions:
   [https://adinserter.pro/documentation/debugging](https://adinserter.pro/documentation/debugging)
 * Remote debugging doesn’t seem to be enabled so I can’t check:
   [https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-forum-before-you-ask-for-help/)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/ads-code-going-under-theme/#post-16482111)
 * Are you still having issues?

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

The topic ‘Ads code going under theme’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/ads-code-going-under-theme/#post-16482111)
 * Status: resolved