Forums

Lightbox AND tinycarousel - as soon as I link to jquery, Lightbox stops working (1 post)

  1. Ninja Master Jimmy Wong-Fu
    Member
    Posted 1 year ago #

    In order to get tinycarousel to work I need to add a path to jquery-1.4.4.min.js in the header section of my theme (see below). However, when I do this, Lightbox 2 stops working. I have been investigating this and it seems as if there is some kind of conflict going on. Please see the script below that I am using in the header of my theme. I believe I am using jquery the correct way:

    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_head(); ?>
    
    <script type="text/javascript"
    src="<?php bloginfo("template_url"); ?>/js/jquery-1.4.4.min.js"></script>
    
    <script type="text/javascript"
    src="<?php bloginfo("template_url"); ?>/js/jquery.tinycarousel.min.js"></script>
    
    <script type="text/javascript">
    $(document).ready(function(){
    $('#slider-code').tinycarousel();
    
    	});
    </script>

    Is there any way to remove this conflict and get both Lightbox and tinycarousel working at the same time?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Ninja Master Jimmy Wong-Fu
  • This topic is not resolved
  • WordPress version: 3.0.1