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.