How can I add a chunk of javascript to the text widget
-
Hi,
I just installed WordPress and am in the process of configuring it. (I am another refugee from Google’s decision to stop allowing FTP blog publishing!)
Anyway, on my old Blogger blog, I had a chunk of javascript in my template that pulled down a list of books I was reading from a third-party website (LibraryThing). This was part of my Blogger sidebar, and I want to have it in my WordPress sidebar.
It’s very simple:
<script language="javascript" type="text/javascript" src="https://www.librarything.com/jswidget.php?reporton=msilverman&show=recent&header=1&num=10&covers=small&text=title&tag=alltags&css=1&style=4&version=1">
I figured the way to get this was to use a Text widget and paste the javascript in there.
However, this doesn’t work.
According to my understanding of WordPress, from the docs this should work — I am the site admin, and it is a self-hosted blog (not on wordpress.com). The standard Google search wasn’t too helpful — mostly people with wordpress.com blogs running into the wordpress.com block on javascript which doesn’t apply to my self-hosted blog.
Is there a trick to enabling Javascript in the text widget, or is there another way I need to go?
- The topic ‘How can I add a chunk of javascript to the text widget’ is closed to new replies.