Wunsz
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Themes and Templates
In reply to: Inserting code into menuYeah! Got it. This one is perfect:
$('ul ul li').parent().prepend('<div id="before"/>'); $('ul ul li').parent().append('<div id="after"/>');Thank you very much for your help!
Edit. Yup thanks for the class 😉
Forum: Themes and Templates
In reply to: Inserting code into menuYay! Now the script works!
But it when i have 2 slide down menu’s “before” is only in the first one and “after” is only in the last one. Is there a fix for that?
Forum: Themes and Templates
In reply to: Inserting code into menuI think so. At least it is added
<script src="http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.7.1" type="text/javascript">Forum: Themes and Templates
In reply to: Inserting code into menuLooks ok but I think that the code is not executing. How can i check that?
Am I even properly placing it? (Just after the php script loading the menu).Forum: Themes and Templates
In reply to: Inserting code into menuInserted this:
<script> $('ul ul li').first().parent().prepend('<div id="before"/>'); $('ul ul li').last().append('<div id="after"/>'); </script>Just after:
<?php wp_nav_menu( array( 'theme_location' => 'primary') ); ?>However it seems not to work :/
Viewing 5 replies - 1 through 5 (of 5 total)