Title: PHP syntax error
Last modified: August 22, 2016

---

# PHP syntax error

 *  [wobzyy](https://wordpress.org/support/users/wobzyy/)
 * (@wobzyy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-syntax-error-3/)
 * Hello all,
 * Thank you for reading my post and I hope someone can help, I seemed to have messed
   up my .php code on line 76:
 * /themes/Discovery/functions.php on line 76
 * I was trying to add an extra menu to my site. A menu that sits above the navigation
   menu. I would like the menu to sit on the right hand side basically. I am just
   trying to add an about link, privacy policy, etc…
 * Here is my current .php in regards to line 76/menus:
 * /**
    * This theme uses wp_nav_menu() in one location. */ function register_nav_menus(
   $locations = array() ) { global $_wp_registered_nav_menus;
 *  add_theme_support( ‘menus’ );
 *  $_wp_registered_nav_menus = array_merge( (array) $_wp_registered_nav_menus, 
   $locations );
    } } add_action( ‘init’, ‘register_my_menus’ );
 * }
    add_action( ‘init’, ‘register_my_menus’ );
 * I do apologize if this is a pretty noob fix, but I literally just started coding
   4 days ago. So I hope this doesn’t irritate anyone too badly.
 * Thanks again for the help and support!

Viewing 1 replies (of 1 total)

 *  Thread Starter [wobzyy](https://wordpress.org/support/users/wobzyy/)
 * (@wobzyy)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/php-syntax-error-3/#post-5884907)
 * I seem to be a bit more retarded then I’d like to admit but, I have located my
   theme’s original functions.php file and copied the code and pasted it into the
   WP theme editor however, I am still receiving the syntax error ??
 * Stumped.
 * *edit* – I figured this out by using filezilla to create a new functions.php 
   file and replace it in the FTP client.
 * However, if anyone still wants to input on some coding for the entire reason 
   this took place, I would not be mad 🙂

Viewing 1 replies (of 1 total)

The topic ‘PHP syntax error’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [wobzyy](https://wordpress.org/support/users/wobzyy/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/php-syntax-error-3/#post-5884907)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
