Title: Theme interfering with Code Embed?
Last modified: September 1, 2020

---

# Theme interfering with Code Embed?

 *  Resolved [dmaltz](https://wordpress.org/support/users/dmaltz/)
 * (@dmaltz)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/theme-interfering-with-code-embed/)
 * With all the fires around the Bay Area, I am trying to create a custom air quality
   dashboard for my family by displaying widgets from PurpleAir. For example, go
   to [https://www.purpleair.com/map?opt=1/a/i/mAQI/a0/cC0&select=54407#13.94/37.74642/-122.43015](https://www.purpleair.com/map?opt=1/a/i/mAQI/a0/cC0&select=54407#13.94/37.74642/-122.43015)
   and click on any sensor – it has a “Get this Widget” link at the bottom.
 * It seemed straightforward enough with CodeEmbed, but it’s not working. I have
   the following entered into my custom field for CODE1:
 * `<div id=”PurpleAirWidget_20709_module_AQI_conversion_C4_average_10_layer_standard”
   >Loading PurpleAir Widget…</div>
    <script src=”[https://www.purpleair.com/pa.widget.js?key=NPPG65F411X9H7BZ&module=AQI&conversion=C4&average=10&layer=standard&container=PurpleAirWidget_20709_module_AQI_conversion_C4_average_10_layer_standard”></script&gt](https://www.purpleair.com/pa.widget.js?key=NPPG65F411X9H7BZ&module=AQI&conversion=C4&average=10&layer=standard&container=PurpleAirWidget_20709_module_AQI_conversion_C4_average_10_layer_standard”></script&gt);
 * and am calling CODE1 on the page. When the page loads, it shows the “Loading…”
   text but something is causing the header to load improperly and the widget does
   not display. My site is fully updated, as is the theme that I am using (Twenty
   Seventeen)
 * Any ideas how to fix?
    -  This topic was modified 5 years, 8 months ago by [dmaltz](https://wordpress.org/support/users/dmaltz/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftheme-interfering-with-code-embed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/theme-interfering-with-code-embed/#post-13346986)
 * Hi,
 * Thanks for the link to the page.
 * I can confirm that that plugin is working correctly and adding the code to your
   site as it should. Why it’s not loading… that’s out of my sphere of support and
   something you’d need to take up with Purpleair.
 * I’ve tried the same script on my own site and I’m seeing the same thing happen.
 *  Thread Starter [dmaltz](https://wordpress.org/support/users/dmaltz/)
 * (@dmaltz)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/theme-interfering-with-code-embed/#post-13347320)
 * OK, thanks for the quick response, David. I’ll ping Purple Air and see what’s
   going on…

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

The topic ‘Theme interfering with Code Embed?’ is closed to new replies.

 * ![](https://ps.w.org/simple-embed-code/assets/icon.svg?rev=3073981)
 * [Code Embed](https://wordpress.org/plugins/simple-embed-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-embed-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-embed-code/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [dmaltz](https://wordpress.org/support/users/dmaltz/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/theme-interfering-with-code-embed/#post-13347320)
 * Status: resolved