Title: Javascript not working for ads
Last modified: October 9, 2017

---

# Javascript not working for ads

 *  Resolved [catokeefe](https://wordpress.org/support/users/cokeefe45/)
 * (@cokeefe45)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/)
 * I am trying to put ads on my website which have javascript. They will not show
   up, though. I have used a plugin, but that does not work either. I have entered
   the code as text in a post and it does not show up there either.
    I have disabled
   all plugins. Did not help. I have tried different themes. Did not help.
 * I have another website which is also a WordPress platform, and it works fine 
   there; the javascript ad works using a plugin or by adding in text view in a 
   post. But not on this other website.
 * So, I called the hosting company, which hosts both my sites, but they said it
   was not from that end.
 * I also tried adding javascript to my header and footer. Nothing happened.
 * I am out of ideas on what to do.
 * My site is not finished, but I will take it out of maintenance mode for viewing.
 * Btw: Ads based on html only, work fine.
    -  This topic was modified 8 years, 6 months ago by [catokeefe](https://wordpress.org/support/users/cokeefe45/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-not-working-for-ads%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9568073)
 * See if info in this cidex can point you in the right direction:
    [https://codex.wordpress.org/Using_Javascript](https://codex.wordpress.org/Using_Javascript)
    -  This reply was modified 8 years, 6 months ago by [t-p](https://wordpress.org/support/users/t-p/).
 *  Thread Starter [catokeefe](https://wordpress.org/support/users/cokeefe45/)
 * (@cokeefe45)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9568111)
 * It doesn’t work. I put this before the php in header:
    <script type=”text/javascript”
   src=”/assets/js/supermag-custom.js”></script>
 * my javascript is in the js folder which is in the assets folder.
 * I don’t know anything about JS. I don’t have this problem at my other site.
 *  Thread Starter [catokeefe](https://wordpress.org/support/users/cokeefe45/)
 * (@cokeefe45)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9568136)
 * I just tried my site in IE and my ad shows up there (I had to click a button 
   to “show all content”). So, I don’t know why it doesn’t show up in Firefox and
   Chrome.
    -  This reply was modified 8 years, 6 months ago by [catokeefe](https://wordpress.org/support/users/cokeefe45/).
 *  Thread Starter [catokeefe](https://wordpress.org/support/users/cokeefe45/)
 * (@cokeefe45)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9568288)
 * I have resolved this. It comes down to the http versus https in your links. Anyways,
   all browsers are showing my ads now.
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9570235)
 * Glad to know it 🙂

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

The topic ‘Javascript not working for ads’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-not-working-for-ads/#post-9570235)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
