Custom Menu on Different Page-- No Style! (2 posts)

  1. sbaroulette
    Posted 3 years ago #

    I've been following this thread for customizing the menu on different pages. It works pretty well except my menu is not styled in a widget box like the other sidebar widgets. It's just plain text in a list. How can I add the class?

  2. sbaroulette
    Posted 3 years ago #

    Btw, here's what I have in my sidebar.php

    <div id="sidebar">
        <div class="widgets"><ul>  
                <?php wp_nav_menu( array( 'fallback_cb' => '', 'container' => 'none',  'container_class' => 'menu-header',  'theme_location' => 'primary', 'menu' => get_post_meta( $post->ID, 'MenuName', true) ) ); ?>
                <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) :  ?>
                <?php endif; ?></ul>

    Not sure how to incorporate into the dynamic sidebar. Any help?

Topic Closed

This topic has been closed to new replies.

About this Topic