muslimbodybuilding
Forum Replies Created
-
im sorry for sounding totally newb.. i am not understanding it one bit… it works if its hosted elsewhere and i call it simply like i did in first post.. but if i upload it to the site.. it wont load…
The javascript i wnat to run also runs this:
http://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js
[Moderator note: If you don’t want to wait, you can ask http://jobs.wordpress.net for support]
I just did that… except i called it fb-sidelike.js. I uploaded the files to mantra’s root folder (mantra is theme name)
I put in functions.php:
add_action('wp_enqueue_scripts','enqueue_my_javascript'); function enqueue_my_javascript() { wp_register_script('fb-sidelike.js','fb-sidelike.js'); wp_enqueue_script('fb-sidelike.js'); }And I put this in page:
<script type="text/javascript" src="fb-sidelike.js" fbpage='mypage'></script>Didn’t work no sliding side bar appears.. nothing happens basically 🙁
Help a man out, here at a loss for words what’s wrong.. need to fix this so i can start working on extra javascript for youtube too… really weird that it works if its outside of my site but not if i upload…