WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sbaroulette
    Member
    Posted 1 year ago #

    Hi,
    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
    Member
    Posted 1 year 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>
                </div>
        </div>

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

Topic Closed

This topic has been closed to new replies.

About this Topic