Disable parts of the BuddyPress Social navigation bars

I would like to disable the "Visit" drop down in the top navigation bar, and the entire second navigation bar (Home, Activity, Community, About, plus any other tabs in this navigation bar that might appear) for non-logged-in members. I would like these features to be restored once a member logs in. How would I do this? Would it be best to add navigation.php to the Child Theme, so future upgrades do not destroy the customization?

Comments 3

I would like to disable the "Visit" drop down in the top navigation bar

This is core to BuddyPress and not the theme, we can "hide" it rather sneakily with a bit of CSS (as opposed to writing a new function for the adminbar)
Just add this to the bottom of your child's style.css:#wp-admin-bar ul li.align-right { display:none; }

the entire second navigation bar (Home, Activity, Community, About, plus any other tabs in this navigation bar that might appear) for non-logged-in members.

I've created the child-theme navigation.php, and see the "<?php if (is_user_logged_in() ) { ?>" but I also see: "<li<?php if ( is_front_page()...". I don't know if "front_page" means the non-logged in front page, or the home page part that is visible whether logged-in or not. Can you please tell me what I would need to put in, and where to put it, to hide this navigation bar for non-logged in?

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: