Title: Make 3.0 submenu use custom class
Last modified: August 19, 2016

---

# Make 3.0 submenu use custom class

 *  [Josh M.](https://wordpress.org/support/users/ebiz_helper/)
 * (@ebiz_helper)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/make-30-submenu-use-custom-class/)
 * Hello,
 * I am coding a WP theme from the HTML of a ThemeForest page: [Theme can be seen Here](http://themeforest.net/item/stage-a-html-template/full_screen_preview/77007)
 * Link to the WordPress theme I’m working on: [http://wp-developers.com/agentdavo/](http://wp-developers.com/agentdavo/)
 * Link to the Static HTML created by ThemeForest: [http://wp-developers.com/test_html](http://wp-developers.com/test_html)
 * For the top navigation menu, I am using the following:
 * functions.php:
 *     ```
       <?
       //add dynamic menu
   
       add_action( 'init', 'register_my_menus' );
   
       function register_my_menus() {
       	register_nav_menus(
       		array(
       			'primary-menu' => __( 'Primary Menu' ),
       			'secondary-menu' => __( 'Secondary Menu' ),
       			'tertiary-menu' => __( 'Tertiary Menu' )
       		)
       	);
       }
       ?>
       ```
   
 * header.php:
    `<?php wp_nav_menu(array('theme_location' => 'primary-menu', 'container_id'
   => 'navigation', 'menu_class' => 'slidemenu1')); ?>`
 * As you can see – I am passing an argument for the menu to use the class slidemenu1–
   this is the class that this layout originally uses.
 * My problem, is with submenu display – If you look at the origional layout, you
   will see it uses: class=”subnav” for styling submenus ( [you can see a static version of the original here on my server here](http://wp-developers.com/test_htm)).
 * Similar to how I passed an argument in wp_nav_menu to use the menu_class slidemenul–
   is it possible for me to set the submenu class?
 * What is the best way to do this without having to change all of the original 
   css around WordPress generated output.
 * Thanks in advance,

Viewing 1 replies (of 1 total)

 *  [foochuck](https://wordpress.org/support/users/foochuck/)
 * (@foochuck)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/make-30-submenu-use-custom-class/#post-1855918)
 * I’m looking for a way to do this as well. *bump*

Viewing 1 replies (of 1 total)

The topic ‘Make 3.0 submenu use custom class’ is closed to new replies.

## Tags

 * [submenu](https://wordpress.org/support/topic-tag/submenu/)

 * 1 reply
 * 2 participants
 * Last reply from: [foochuck](https://wordpress.org/support/users/foochuck/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/make-30-submenu-use-custom-class/#post-1855918)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
