4 Replies Latest reply: Jul 22, 2013 4:52 PM by Asad 6SM RSS

    Image Carousel Not Working

    Asad 6SM Community Member

      Hi All,

       

      I am moving some pages form one template to another and the slider has stopped working. I have made sure the JS files are linked to it, the JS code is in the page and the css has been copied across.

       

      The link for the page I am moving is: http://proludic.co.uk/Funding.htm

       

      The test page i have setup is: http://proludic.co.uk/Funding_copy.htm

       

      If anybody can point me in the right direction i would be very greatful.

       

      Kind Regards

       

      Asad

        • 1. Re: Image Carousel Not Working
          thetrickster888 Community Member

          There are a few things going wrong here...

           

          1. Your "#slider" element doesn't exist which you are calling the easyslider() plugin on-- currently your slider is in an element "#slider-page" so you should probably change that element to have an id of "slider" instead of "slider-page".

           

          2. You are calling multiple versions of jquery. In your original site you are just using jquery 1.4 but in your test page you are using both 1.4 and 1.8.3 and furthermore, you are including the 1.8.3 version of jquery at the beginning of the BODY element instead of in the HEAD element.  You should only be using one jquery library instead of two and you might as well consider using 1.8.3 instead of 1.4 but just be wary that 1.8.3 might not work with your easy slider plugin if the plugin is old and uses jquery methods that are deprecated and removed from more current versions.

           

          Try this... find this markup in your page template's HEAD element:

           

          <script type="text/javascript" src="/js/jquery-1.4.min.js"></script>

           

          And replace it with:

           

          <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>

          <script type="text/javascript">var _visitorDeviceClass = "{system_visitorDeviceClass}";</script>

          <script type="text/javascript" src="/js/jquery.main.js"></script>

           

           

          Then, find the above code references and delete them from the beginning of the BODY element after you've moved them up into the HEAD element in the previous step (replacing jquery 1.4).

           

          See if that works.

          • 2. Re: Image Carousel Not Working
            Asad 6SM Community Member

            Trickster,

             

            Once again I cant thank you enough! if your in the UK i owe you a drink or 5!!!

             

            I did what you said and it is kind of working, I need to hide the previous and next buttons and get rid of the dot <li> somehow and we are there!

             

            Any ideas on how to do the above, I am just messing around with the padding and stuff at the moment.

             

            Once again thank you.

            • 3. Re: Image Carousel Not Working
              thetrickster888 Community Member

              You can hide it via CSS.  At the end of your "all.css" file add this:

               

              #slider #prevBtn, #slider #nextBtn { display: none; }

              • 4. Re: Image Carousel Not Working
                Asad 6SM Community Member

                Nice on Trickster, i went into the Carousel javascript file and removed the name from there so it would display! I am learning slowly but surely, thanks again for your help.