Title: How to combine two scripts in function.php
Last modified: October 7, 2016

---

# How to combine two scripts in function.php

 *  Resolved [marcuselsen](https://wordpress.org/support/users/marcuselsen/)
 * (@marcuselsen)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/how-to-combine-two-scripts-in-function-php/)
 * I’m a newbie with wordpress
 * How to combine two scripts in function.php
 * if have
 *     ```
       register_nav_menus( array(
       'primary'
       => __( 'Primary Menu', 'sela' ),
       'social'
       => __( 'Social Menu', 'sela' ),
       ) );
       ```
   
 * and
 *     ```
       wp_nav_menu( 
         array(
           'menu' => 'Primary Menu' ,
           'after' => '<span class="navSep">|</span>'
         ));
       ```
   

The topic ‘How to combine two scripts in function.php’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [marcuselsen](https://wordpress.org/support/users/marcuselsen/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/how-to-combine-two-scripts-in-function-php/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
