• Resolved richardpd

    (@richardpd)


    My blog is not showing secondary/sub-menu properly.
    See rhdwponlinetwist
    It should display a sub-menu below Forums menu link.
    It is based on 2010 code using a custom menu
    Here is header/nav code

    <nav id="access" class="menu" 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', 'anIMass' ); ?>"><?php _e( 'Skip to content', 'anIMass' ); ?></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'=> 'nav','container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>-->
    
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    </nav>

    I have tried changing this & the style.css but with no success so far so I am grateful for any help & advice to fix it & look forward to helpful replies-many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter richardpd

    (@richardpd)

    I have fixed this now.
    It has taken me all night to fix as I tried several methods.
    In general as my theme is HTML5 I wanted to stick with <nav> element
    and use WP 2010 default menu styling with the approach <nav id=”access”role=”navigation”> and keep 2010 css in general (#access{} etc). I tried various other css styling but the submenu would not display over section/aside elements & so was partly hidden by these elements.
    Anyway finally I fixed it using mainly 2010 coding as described.
    I may later write a more detailed post somewhere on html5 nav menus-(after I do a little more research & experimenting)-I think it could be helpful.

    Also I note as usual I am answering my own WordPress question/problem on the forum as I have had no replies! (-sigh…nevermind – this is normal for WordPress/BuddyPress support! DIY is the usual answer…).

    my sub-menus are also not showed up properly.. i have solved this problem by adjusting top and left property of css.. in style.css file

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sub-menu not showing’ is closed to new replies.