Title: adding items to nav-menu
Last modified: August 21, 2016

---

# adding items to nav-menu

 *  [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/adding-items-to-nav-menu/)
 * Im using the 3.8 version of wordpress and I’m trying to add some custom social
   items to the navigation menu – something I’ve done several times before on previous
   versions of wp. But for some reason i simply can’t get it to work now.
 * Here is my code, put into the child themes functions.php:
 *     ```
       <?php
       /**
       *functions.php for Child theme
       */
   
       /* Social Icons */
   
       function menu_social($items){
           $social = '<li class="social">';
           $social .= '<a href="http://www.facebook.com/christel.winther">';
       	$social .= '<img src="http://selgolb.cphadsdemo.dk/wp-content/themes/christel/images/facebook.png" /> </a>';
       	$social .= '<a href="http://twitter.com/ChristelWinther">';
       	$social .= '<img src="http://selgolb.cphadsdemo.dk/wp-content/themes/christel/images/twitter.png" /> </a>';
       	$social .= '<a href="dk.linkedin.com/pub/christel-winther/2/409/b03">';
       	$social .= '<img src="http://selgolb.cphadsdemo.dk/wp-content/themes/christel/images/linkedin.png" /> </a>';
       	$social .= '<a href="http://christelwinther.com/feed">';
       	$social .= '<img src="http://selgolb.cphadsdemo.dk/wp-content/themes/christel/images/rss.png" /> </a>';
       	$social .= '</li>';
   
           return $items . $social;
       }
       add_filter('wp_nav_menu_items','menu_social');
   
       ?>
       ```
   
 * The website url is: [http://selgolb.cphadsdemo.dk](http://selgolb.cphadsdemo.dk)

The topic ‘adding items to nav-menu’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [j4ze](https://wordpress.org/support/users/j4ze/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/adding-items-to-nav-menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
