Unable to run javascript from page thats hosted but able to hosted elsewhere…
-
So I found a neat facebook slide like script from monkeyphysics, works great all i do is with a floating widget insert this:
<script type="text/javascript" src="https://www.monkeyphysics.com/fb-sidelike/fb-sidelike.js" fbpage='facebookpagename'></script>
It’s three files, two pictures and one javascript which calls a facebook social plugin and mootools from googleapis.
Obviously i want it on my site and i want to modify it to make a sliding youtube channel iframe as well but… before i even get there i can’t get this to work if i upload it to my site…
I tried a few different URL i tried to upload in theme folder, i tried to upload to wp-include
/wp-content/themes/mantra/js/side-slidebar/fb-sidelike.js
I tried under /js/ by itself
I tried also /wp-includes/js/
In fact i managed to get the exact url and open in browser to view the script… but when i try to insert with the javascript nothing happens?????
I installed better-wp-security is this blocking it somehow? Doesn’t make sense.. as the mantra theme includes javascripts itself.
Please help me out. Has nothing to do with mantra, i have customized the site on my own but the problem is just getting my uploaded .js file to even load ??
- The topic ‘Unable to run javascript from page thats hosted but able to hosted elsewhere…’ is closed to new replies.