Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1148519
    mdmason23
    Participant

    Hello,

    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,
    Monique

    #1148520
    mdmason23
    Participant
    This reply has been marked as private.
    #1148864
    Jade
    Moderator

    Hi 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.

    #1149813
    mdmason23
    Participant

    Jade,

    So sorry about that! I did try to delete the menu again this morning and received no error message. Sorry for the bother.

    Monique

    #1150111
    Rue Nel
    Moderator

    Hello 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.

  • <script> jQuery(function($){ $("#no-reply-1148519 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>