Parse error: syntax error, unexpected 'function' (T_FUNCTION)
-
Theme: Current updated 2013 Theme
WordPress: 4.4 the newest
PHP: I assume since I updated to the newest WP it is also updated to the newest PHP
Hosting: Local host on computer using XAMPP.Error: Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/themes/twentythirteenChild/functions.php on line 578
Code is placed in functions.php. Not sure I am getting this error message. My function looks correct but it throws out the above error. When I remove this code functions.php works fine.
I don’t think my code is a problem (or maybe it is?) so I am hoping a second set of eyes or some suggestions would help solve this error.Code
<?php function register_my_menus() { //line 578 register_nav_menus ( array( 'footer-menu' => __('Footer Menu') ) ); } add_action('init', 'register_my_menus'); ?>
- The topic ‘Parse error: syntax error, unexpected 'function' (T_FUNCTION)’ is closed to new replies.