Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Christine357 on "Same Navigation Different Styles"

$
0
0

So I was wondering how I could paste another navigation menu in but have it a different style as my original. For example, the code of my current one is:

<nav id="site-navigation" class="main-navigation" role="navigation">
			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
		</nav><!-- #site-navigation -->

To change the style of it I've edited the CSS of the "site-navigation" ID and the "main-navigation" class.

However now I'd like to also place a menu at the bottom of my page but I don't want it to have the same styles. The problem is, if I change the ID or CLASS of the navigation, the menu for mobile no longer works.

I just need to know how to have the same menu styled two different ways and stay linked to the "menu" functionality.


Viewing all articles
Browse latest Browse all 8245

Trending Articles