Title: Styling Menu Items Displayed Using Shortcode
Last modified: August 20, 2016

---

# Styling Menu Items Displayed Using Shortcode

 *  [h.schiefer](https://wordpress.org/support/users/hschiefer/)
 * (@hschiefer)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/styling-menu-items-displayed-using-shortcode/)
 * I added code to my theme’s function.php file to allow me to call a custom menu
   in a page:
 *     ```
       function print_menu_shortcode($atts, $content = null) {
           extract(shortcode_atts(array( 'name' => null, ), $atts));
           return wp_nav_menu( array( 'menu' => $name, 'echo' => false ) );
       }
       add_shortcode('menu', 'print_menu_shortcode');
       ```
   
 * What I need now is to be able to style the parent and child pages listed there.
   Right now they are just a list.
 * Parent Page
    Child 1 Child 2 Child 3 Parent Page Child 1 Child 2
 * I’d like to bold the parent pages and increase their font size a bit.
 * **Parent Page**
    Child 1 Child 2 Child 3 **Parent Page** Child 1 Child 2
 * Any help?
 * [Here’s the main page](http://www.vanityasart.com/_sitedev/hometown-hardware.com)

The topic ‘Styling Menu Items Displayed Using Shortcode’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [menu style](https://wordpress.org/support/topic-tag/menu-style/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * 0 replies
 * 1 participant
 * Last reply from: [h.schiefer](https://wordpress.org/support/users/hschiefer/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/styling-menu-items-displayed-using-shortcode/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
