BuddyBoss Home – Web › Support Forums › Solutions › Social MarketPlace › Profile options missing after adding custom code
- This topic has 7 replies, 2 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
April 10, 2016 at 1:00 am #67571@lshijieI 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-67302where 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
April 10, 2016 at 4:42 am #67584@
AnonymousHi @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 DubeyApril 10, 2016 at 10:26 am #67610@lshijieHi @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. 🙂
April 11, 2016 at 5:39 am #67689@
AnonymousHi @lshijie, It should be off for all log users by default.
Please paste your site url to test on your site.
Regards
Varun DubeyApril 11, 2016 at 5:49 am #67694April 11, 2016 at 6:32 am #67696@
AnonymousHi @lshijie
You can try these custom css codesbody: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 DubeyApril 11, 2016 at 6:45 am #67699@lshijie@vapvarun that’s perfect! Solved the issue. Thanks so much! 🙂
April 11, 2016 at 7:02 am #67701@
AnonymousGreat, I will close this thread.
Regards
Varun Dubey
- The question ‘Profile options missing after adding custom code’ is closed to new replies.