• I have a pretty simple Jquery menu I’m messing with, but for some reason I can’t get the Jquery to work for the life of me. Here’s the link: https://www.jennibage.com/wptesting/about/#

    the menu up top is supposed to slide down.

    Here’s the call to jquery I have in my header:

    <?php wp_enqueue_script("jquery"); ?>
    
    <?php wp_head(); ?>
    
     <script type="text/javascript" src="https://www.iamheartandsoul.com/wp-content/themes/heartandsoul2/jquery.js"></script>
     <script type="text/javascript" src="https://www.iamheartandsoul.com/wp-content/themes/heartandsoul2/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="https://www.jennibage.com/wptesting/wp-content/themes/lmg2/sprite.js"></script>

    Please help ?? Seems so simple but its driving me crazy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Use Firebug to see what scripts and images are loading or not and find other errors. I see a parse error in sprite.js

    You’re including two seperate(likely conflicting) versions of jQuery, first here with the WordPress version.

    <?php wp_enqueue_script("jquery"); ?>

    Then here with a seperate version.

    <script type="text/javascript" src="https://www.iamheartandsoul.com/wp-content/themes/heartandsoul2/jquery.js"></script>

    Remove the second one, and just use the built-in WordPress version(it’s the same version).

    Then in the sprite script, change this line..

    $(document).ready(function() {

    ..to..

    jQuery(document).ready(function($) {

    ..and hopefully that should do it..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jquery Problems’ is closed to new replies.