WordPress.org

Ready to get started?Download WordPress

Forums

wp_nav and drop down menu and css sprite problem (2 posts)

  1. kero13
    Member
    Posted 3 years ago #

    im using the jquery for the drop down menu from this site: link here
    and i used the css that comes with it..
    my function.php for my menu looks like this:

    function add_header() { ?>
    		<div id="smoothmenu1" class="ddsmoothmenu">	
    
    <ul>
    <li><a href="#">Book Now</a></li>
    <li><a href="#">Our Resorts</a></li>
    				<?php wp_nav_menu( array('menu' => 'Our Resort','container' => 'false')); ?>
    
    <li><a href="#">Activities</a></li>
    <li><a href="#">Leisure Packages</a></li>
    <li><a href="#">Event Packages</a></li>
    </ul>
    		</div>
    <?php }
    add_action('thematic_header','add_header');

    But my sub nav/ sub menu is still using the ul li style instead of the ul li ul li.. i tried changing it and putting !important but the sub nav is still showing beside my menu instead of vertically dropping down. please help:)

    thanx

  2. Janu Studio
    Member
    Posted 3 years ago #

    I already used that Drop down menu on my site... the best thing you can do is first try to design or configure it on html... then check if its working perfect ok... when you are done with it.. Simply copy the html code in your template and add the jquery in header as per the menu.. then check if its working on static format in wordpress template... if you are not getting static menu correct then you are doing something wrong... if you get menu done working then simply replace the contents with wp-menu funtion...

Topic Closed

This topic has been closed to new replies.

About this Topic