Hello,
Thank you for response,
Function.php include that function
add_action( ‘wp_enqueue_script’, ‘load_script’ );
function load_script() {
wp_enqueue_script( ‘jquery’ );
}
I tryed to use
(function($) {
// Your jQuery code goes here. Use $ as normal.
})(jQuery);
but same result.
I visited another solution from https://www.youtube.com/watch?v=1XTGcWANRaQ
I used too:
<script type=”text/javascript”>
var jq-$.noConflict();
jq(document).ready(function (){ //Usage
jq(“.menu ul li”).verticalMenu({ Speed: 340, effectHide: “fade”, method: “click”
});
});
</script>
</head>
but it generated error to my DW about the row ( var jq-$.noConflict(); )
so..
I would like to verify, if possible?
I installed my js Menu to my header
I added that code
<link href=”mytheme/style.css” rel=”stylesheet” type=”text/css” />
<script type=”text/javascript” src=”js/menu_min.js”></script>
<script type=”text/javascript” src=”js/script.js”></script>
<script type=”text/javascript” src=”js/jquery.hoverIntent.minified.js”></script>
<script type=”text/javascript”>
(function($) {
$(document).ready(function (){ //Usage
$(“.menu ul li”).verticalMenu({ Speed: 340, effectHide: “fade”, method: “click”
});
});
})(jQuery);
</script>
<?php wp_head(); ?>
</head>
———————————–
I don’t know if it correct?
I must add ?
<script type=”text/javascript” src=”js/jQuery.js”></script>
I added it but, nothing changed so I removed it to my head..