Tagged: x
-
AuthorPosts
-
August 26, 2016 at 12:22 pm #1148519
mdmason23ParticipantHello,
I am trying to delete a menu, but keep getting the following error:
Parse error: syntax error, unexpected end of file in /home/ab16542/public_html/butterbeescraps.com/wp-content/themes/x-child/functions.php on line 109
This started happening after I added the following code to my functions.php file in an attempt to show different menus based on whether a user was logged in or not:
function my_wp_nav_menu_args( $args = '' ) { if( is_user_logged_in() ) { $args['menu'] = 'logged-in'; } else { $args['menu'] = 'logged-out'; } return $args; } add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );I subsequently removed the code, which was beyond line 109 anyway, and I continue to get the error above. Help please…I want my main-menu-logged-in deleted, and also want to ensure there is no error in the coding near line 109…I added the code yesterday to display a sidebar on my buddy press pages and found it here in the forums.
I should also mention that even after I delete the “offending” code, I still continue to get the same error, even though the functions.php file isn’t even 109 lines long.
Thanks,
MoniqueAugust 26, 2016 at 12:23 pm #1148520
mdmason23ParticipantThis reply has been marked as private.August 26, 2016 at 5:27 pm #1148864
JadeModeratorHi there,
I have tried to login using the details you have provide but the user seems to have limited access.
Kindly set the user to an admin user so that we could check it further.
August 27, 2016 at 12:59 pm #1149813
mdmason23ParticipantJade,
So sorry about that! I did try to delete the menu again this morning and received no error message. Sorry for the bother.
Monique
August 27, 2016 at 9:07 pm #1150111
Rue NelModeratorHello There,
We are just glad that you have figured it out a way to correct the said issue.
Thanks for letting us know!Best Regards.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1148519 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
