reference jquery file in /concrete/js/ directory
Permalink 2 users found helpfulJust as a reference, jQuery is called in the (root)/concrete/elements/header_required.php file. You may override jquery by placing a new version in (root)/js file and calling it jquery.js if you need to. You can also do the same thing for header_required.php.
Hope that helps.
Edit: looking at the code from your head, you should place header_required above any CSS or JS you have created/added.
It works like the hundreds of other posts I've searched through, but doesn't load the edit tool bar. I've tried many different ways.
<style type="text/css">td img {display: block;}</style> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main_new.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography_new.css')?>" /> <?php Loader::element('header_required'); ?> <script src="<?=$this->getThemePath()?>/jquery-latest.pack.js" type="text/javascript"></script> <script src="<?=$this->getThemePath()?>/jcarousellite_1.0.1c4.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $(".vert-carousell").jCarouselLite({ vertical: true, hoverPause:true, visible: 1, auto:500, speed:2000 });
In Concrete5, you have to specifically (with an override in /elements) tell concrete *not* to load jQuery by default. This means that jQuery is loaded on every single page of Concrete5 unless you make the system do otherwise.
Try the following code:
<style type="text/css">td img {display: block;}</style> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main_new.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography_new.css')?>" /> <?php Loader::element('header_required'); ?> <script src="<?=$this->getThemePath()?>/jcarousellite_1.0.1c4.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $(".vert-carousell").jCarouselLite({ vertical: true, hoverPause:true, visible: 1, auto:500, speed:2000 }); if (o.hoverPause) li.mouseover(function () { ul.stop(); }).mouseout(function () { running = false; go(curr); });
As a note, jcarousellite_1.0.1c4.js should be in your theme's root directory (where your main_new.css is, et all).
I would like to thank You! I had the same problem as Deladroid and thanks to You it is now fixed. Uff...
Note: the cycle script works for my image slider...