Add jQuery Plugin to C5

Permalink
Hello,

I want too add a very simple jQ plugin to my website.
Specifically:http://lab.adrianquevedo.com/jquery-spectragram/...

Is there an easy way to do this?
I do not want to create a new block. Ideally I just want to add the the .js file to /js, link the script in header.php and then call it inside a block.

I was hoping I could add an HTML block and call the plugin there within <script>. Unfortunately this doesn't work.

Can this be done?

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Don't include the jquery library as C5 have a default jquery library added in the page.

Rony
jvuka replied on at Permalink Reply
Hi Ronny, thanks for the reply.

I am not adding the jQuery library in the header. I understand it is included in C5.
jshannon replied on at Permalink Reply
jshannon
What happens when you try it with an HTML block? I've successfully done similar stuff, and there's no reason why it shouldn't work for you.

Note that some old versions of c5 (or custom themes) *don't* include jquery. You still shouldn't include your own, but that might be a problem. Otherwise, what was the problem? DId the HTML get printed out to the browser? Maybe you had an error in your script tag....