• 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

    (@wobzyy)

    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.