I have a slider on a site i'm developing that isn't a concrete addon, when logged in it works perfectly but when i'm not logged in it won't work. Any ideas why this may be? Can't seem to figure it out.
Here is the html code for the slider
<!-- header slider -->
<div class="header_slider">
<div class="slides_container" >
<div class="slide">
<div class="slide_image"><img src="<?phpecho$this->getThemePath()?>/images/twosq_images_story.png" width="404" height="304" alt=""></div>
<div class="slide_text">
<p class="slide_title"><strong>Prices & Bookings</strong></p>
<p>Some text goes in here </p>
<a href="#" class="button_link btn_pink"><span>FIND OUT MORE</span></a> </div>
</div>
<div class="slide">
<div class="slide_image"><img src="<?phpecho$this->getThemePath()?>/images/twosq_images_story.png" width="404" height="304" alt=""></div>
<div class="slide_text">
<p class="slide_title"><strong>Prices & Bookings</strong></p>
<p>Some text goes in here </p>
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
When you are logged out you don't have jquery loaded.
You need to also load jquery.
Try this:
<?php $this->addHeaderItem($html->javascript("jquery.js")); ?>
or
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>