BuddyBoss Home – Web Support Forums Solutions Social MarketPlace Profile options missing after adding custom code

Viewing 8 posts - 1 through 8 (of 8 total)
  • Question

    #67571
    @lshijie

    I refer to the closed forum thread
    https://www.buddyboss.com/support-forums/topic/left-user-buttonicon-missing-in-mobile-view-when-not-logged-in/#post-67302

    where I wanted the login function for mobile users but not the black bar that comes with it on the desktop.

    Although the last solution by @pallavi helps to get rid of the black admin bar, it also removes the profile options in the profile picture dropdown menu. It also removes the message and settings icons in the header. I don’t want those to be removed.

    Sorry I didn’t notice this before you guys closed the thread. Hope you can help me with this.

    Answers

    #67584

    Anonymous
    @

    Hi @lshijie,

    remove it from your child theme’s function.php

    add_filter(‘show_admin_bar’, ‘__return_false’);

    To disable black admin bar , theme have inbuilt option for it.
    https://drive.google.com/file/d/0Bzv-k-FcE80iTk1QQ1lhRC16RUU/view?usp=drivesdk
    Regards
    Varun Dubey

    #67610
    @lshijie

    Hi @vapvarun. I followed your instructions and test my site. My inbuilt option was already set to ‘off’. The inbuilt option helps to remove the black bar for logged in users, but when users are logged out the black bar is still there. I want the black bar to be removed for logged out users as well. Hope for a solution for this. 🙂

    #67689

    Anonymous
    @

    Hi @lshijie, It should be off for all log users by default.
    Please paste your site url to test on your site.
    Regards
    Varun Dubey

    #67694
    @lshijie

    Hi @Vapvarun, my site is syft.sg

    #67696

    Anonymous
    @

    Hi @lshijie
    You can try these custom css codes

    
    body:not(.logged-in).is-desktop.admin-bar {
        margin-top: 0px !important;
    }
    
    body:not(.logged-in).is-desktop.admin-bar #wpadminbar {
        display: none!important;
    }
    

    It will hide admin bar for not logged in user.

    Regards
    Varun Dubey

    #67699
    @lshijie

    @vapvarun that’s perfect! Solved the issue. Thanks so much! 🙂

    #67701

    Anonymous
    @

    Great, I will close this thread.
    Regards
    Varun Dubey

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘Profile options missing after adding custom code’ is closed to new replies.