How do i enable a javascript widget with Wordpress
January 6, 2008 2:02 PM Subscribe
I've set up a self hosted blog. I've got it looking pretty much how I want it, but I want a javascript based "advert" (it's an animated Kiva.org thing) in the sidebar. The blogging platform is Wordpress, which doesn't allow javascript if the blog is hosted on their servers.
But it's not hosted on wordpress.com. I'm hosting it on my own servers. I've tried adding the relevant script text into a text widget, and then adding that to the sidebar, but the script text just gets stripped out.
What do I need to do to get this to work? I'm using Wordpress 2.3.2.
But it's not hosted on wordpress.com. I'm hosting it on my own servers. I've tried adding the relevant script text into a text widget, and then adding that to the sidebar, but the script text just gets stripped out.
What do I need to do to get this to work? I'm using Wordpress 2.3.2.
Best answer: Create a new, blank text widget in Presentation > Widgets. Drag it to your sidebar. Open the widget, past the javascript source code.
posted by jbickers at 2:16 PM on January 6, 2008
posted by jbickers at 2:16 PM on January 6, 2008
Not sure what the problem is -- I host my own WordPress blog, and I have Javascript in one of my sidebar widgets. jbickers' instructions should do it...
posted by danb at 3:23 PM on January 6, 2008
posted by danb at 3:23 PM on January 6, 2008
Response by poster: Thanks guys. On checking the page source, it turns out that it's the adverts javascript that's at fault, not Wordpress.
posted by Rabulah at 3:06 AM on January 7, 2008
posted by Rabulah at 3:06 AM on January 7, 2008
This thread is closed to new comments.
posted by nitsuj at 2:10 PM on January 6, 2008