• Hello guys,

    I’ve been looking for the solution to this problem for a half a day now. Either I haven’t been looking thoroughly enough or I am the only one expriencing it.

    My dropdown menus are only displayed as a list. I am sure the solution is quite simple but I just can’t figure it out. I’ve followed the codex-tutorials regarding the sidebar so far, but it still doesn’t work. The strange thing is, that even if I install a dropdown-menu plugin, it still will show the menu only as a list (not sure how that works…) .

    This is my functions.php:

    <?php
    /**
     * @package WordPress
     * @subpackage MySite
     */
    
    add_theme_support( 'post-thumbnails' );
    add_theme_support( 'automatic-feed-links' );
    
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar'
    ));
    
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'topbar'
    ));
    ?>

    So I have registered two sidebars, one at the top and one on the side. I already tried registering only one, still didn’t help. This is how the sidebar-topbar.php looks like:

    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar('topbar') ) : ?>
    <?php endif; ?>

    (Don’t know what I could have done wrong here…)

    And this is how I call the function in the header.php:

    <div class="header">
    <?php get_sidebar('topbar'); ?>
    </div> <!-- /header -->

    I don’t know, maybe I’m not allowed to give a class to the <div> the sidebar’s in or maybe I overwrote a sidebar class in the CSS file unintentionally. Well, I’m kind of out of ideas right know and would appreciate any type of help (even those angry posts linking to the same question that has already been answered).

    So thanks in advance, guys.

Viewing 9 replies - 1 through 9 (of 9 total)
  • This is almost certainly a CSS issue – not a code one.

    Thread Starter TheGuyver

    (@theguyver)

    That would make sense, especially when the menu plugins modify the css. Is there a way to figure out which classes I shouldn’t use?

    Try using Firefox with the Firebug add-on to help you work out what classes you can use. This is all very theme specific.

    Thread Starter TheGuyver

    (@theguyver)

    I am trying to build my own theme, hence the problems, I assume. However, even after I switch to TwentyTen / TwentyEleven it still doesn’t display the menues, neither in FF nor in Chrome…Maybe it is server-dependent, I don’t know. Gonna try moving it to another Server, even if it sounds rediculous…

    Thread Starter TheGuyver

    (@theguyver)

    (since there’s no) edit: I’ve tried setting up another wordpress on anotherg server with another theme and it still doesn’t work. Maybe I overlooked something while setting up or there’s something missing in the wp-config.php, but now I am really out of ideas…I don’t even now if it’s a theme problem anymore :S

    I having the same same issue. Most of level two menu items are shown as drop down menu members but it appears that as long as there is room on the top menu that children are promoted to top level items even though they are properly nested in the page list. It repros in both IE9 and FF4. Have found other people reporting the same issue but no solutions yet.

    Think I figured it out. WP will let you reference the home (root of the WP site) as a parent but won’t have children show up under the home page as menu items. Doh.

    Thread Starter TheGuyver

    (@theguyver)

    Thanks for the replies. However, I don’t think I can follow. Basically, the site looks like this:

    http://anotherguyver.kilu.de/

    The right menu consists of the WP menu widget, the top one is a jQuery dropdown menu plugin. As you can see, they look the same. Maxbe it’s a css problem and I have to add something to the style.css, but since it’s a plugin I assumed, that it would do that automatically. The hierarchy of the menu items stays the same, but still, only as lists.

    Good luck. Looks like your problem was different than mine.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Dropdown Menus are only displayed as lists?’ is closed to new replies.