Slider only working when logged in
Permalink
Hi
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
and I also have this in the footer.php
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="<?php echo $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="<?php echo $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>
Viewing 15 lines of 42 lines. View entire code block.
and I also have this in the footer.php
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>