• Resolved JCKnoell

    (@jcknoell)


    I am looking through my header file and I noticed multiple instances of calling jquery. Some are different versions, some are “custom” (whatever that means)

    <script src="/wp-content/themes/cleantelligent/js/jquery.cycle.all.js" type="text/javascript"></script>
    <script src="/wp-content/themes/cleantelligent/js/jquery-ui-1.8.19.custom.min.js" type="text/javascript"></script>
    
    <script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
    <script type='text/javascript' src='/wp-includes/js/comment-reply.js?ver=3.4.2'></script>
    
    <script src="/wp-content/themes/cleantelligent/js/jquery.cycle.all.js" type="text/javascript"></script>
    <script src="/wp-content/themes/cleantelligent/js/jquery-ui-1.8.19.custom.min.js" type="text/javascript"></script>

    I’m guessing this is a problem, right?

    I’m a super newbie with jquery and I have no idea what I’m doing here. I’m guessing some of these scripts may have been placed here as part of a plugin for wordpress, or for something else entirely.

    Do I need multiple scripts for this? If I remove all but one, will it break some of my plugins? If anyone can explain to me how this works, I will be forever indebted to you. I am having a hard time understanding jquery.com.

Viewing 3 replies - 16 through 18 (of 18 total)
  • to have them re-write it? Or to ask why they wrote it that way?

    Either or, really.

    Can’t I just fix it and move on?

    As I do not know this custom theme, I cannot guarantee that this will work.

    Thread Starter JCKnoell

    (@jcknoell)

    Okay. Well thank you sincerely for your help. I always appreciate your comments, esmi. You really seem to know your stuff.

    I try. ??

    I think you need to ask the developers of this theme why they added scripts into the theme’s header.php template file instead of using wp_enqueue_script( which is the Right Way(tm) do do this). They may have had a reason and anything I suggest now could stop the theme from working effectively.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Jquery help? Multiple versions?’ is closed to new replies.