Jquery Plugins on Concrete5 5.4.1.1

Permalink
Hi,

I try to install jquery plugins on the new core release (concrete5 5.4.1.1), for example,http://buildinternet.com/project/supersized/...

My code in the head section :

<head>
<!-- Site Header Content //-->
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
<?php  Loader::element('header_required'); ?>
<script type="text/javascript" href="/js/jquery.supersized.js"></script>
<script type="text/javascript">
   $(function(){
      $.supersized({
         slides:  [ { image : 'myimage.jpg' } ]               
      });
   });
</script>
</head>


And there is an error:
"$.supersized is not a function"

I've tried to change plugin with another and there is the same error "... is not a function" !

Can you help me ?

moosh
 
moosh replied on at Permalink Best Answer Reply
moosh
I have found the problem !

<script type="text/javascript" href="/js/jquery.supersized.js"></script>


It's not "href" but "src" !!!
nico741019 replied on at Permalink Reply
Hello Moosh,

I'm trying to include the same plugin on my website, but i have no idea of how to do it. Where do i have to put the code, which files i have to modify...
Do you know where i could find some documentation about this?
Thanks,

Nicolas
moosh replied on at Permalink Reply
moosh
Hello,

Just edit elements/header.php in your theme :-)

And add line required (<script>/<link>)

Best,