Hallo liebe Gemeinde,
ich hoffe ihr nehmt den 1 Post-Neuling nicht zu hart ran, aber ich habe ein Problem an dem ich mir die Zähne ausbeiße.
Auf meiner Seite (http://johannes-amm.de) möchte ich das vertikale menü in ein horizontales umwandeln um den header weniger groß zu gestalten.
ich habe folgendes gelesen: http://codex.wordpress.org/Creating_Horizontal_Menus
Meine Menu-CSS ist:
Code
/* =Menu
-------------------------------------------------------------- */
#access { }
#access ul {
list-style: none;
margin: 50px 0 0;
}
#access .menu-header li,
div.menu li {
float: left;
position: relative;
display: inline; <--------------------
}
#access a {
color: #666;
text-decoration: none;
font-size: 14px;
text-transform: uppercase
}
#access a:hover {
color: #666;
text-decoration: underline;
font-size: 14px;
text-transform: uppercase
}
.blog #access ul li#menu-item-329 > a,
.single #access ul li#menu-item-329 > a,
#access ul li.current_page_item > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a,
#access ul li.current-cat > a {
color: #000;
}
* html .blog #access ul li#menu-item-329 > a,
* html .single #access ul li#menu-item-329 > a,
* html #access ul li.current_page_item a,
* html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a,
* html #access ul li.current-menu-parent a,
* html #access ul li a:hover {
color: #fff;
}
Alles anzeigen
An der mit dem Pfeil markierten Stelle habe ich wie im FAQ beschrieben display: inline; eingefügt. Es tut sich aber überhaupt nichts...
Hier vielleicht noch der Code meiner header.php wo das menu aufgerufen wird:
PHP
<div id="access" role="navigation">
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php //wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
<ul class="reset">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('navigation')) : else : endif;?>
</ul>
<?php if ( is_home() || is_front_page() ) { ?>
Alles anzeigen
hat jemand eine Idee? Habe ich Tomaten auf den Augen? Über Hilfe wäre ich sehr dankbar.