Superfish -jquery issue
-
this jquery DOES work, at the top of the <body> secion, in my header.php, and with the wp_enqueue_script function in my functions.php.
<script type="text/javascript"> jQuery(document).ready(function() { jQuery("a.hello").click(function() { alert("Hello world!"); }); }); </script> <a class="hello" href="#">Click Me</a>
(above works fine)
HOWEVER, the following declarations fail to properly load a
<ul>
into a superfish.<link rel="stylesheet" type="text/css" href="fish/superfish.css" media="screen"> <script type="text/javascript" src="fish/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="fish/hoverIntent.js"></script> <script type="text/javascript" src="fish/superfish.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="fish/superfish-vertical.css" /> <script type="text/javascript"> // initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); </script>
these same declarations DO properly load a superfish in a stand-alone html file.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Superfish -jquery issue’ is closed to new replies.