Remove Profile Visibility Subnav
-
I want all profile fields to be visible on my site. So I want to remove the subnav Settings > Profile Visibility.
I have added below command into bp-custom.php but it does not work.
function bpfr_hide_visibility_tab() {
if( bp_is_active( ‘xprofile’ ) )bp_core_remove_subnav_item( ‘settings’, ‘profile’ );
}
add_action( ‘bp_ready’, ‘bpfr_hide_visibility_tab’ );Something has changed probably because the conversation I found about this issue is two years old.
Could you please let me know updated command that I have to use ?
WordPress: 5.0.3–sk_SK
BuddyPress: 4.1.0
mamatwist.comThank you,
Dana
-
Thank you in advance for your support 😉
Hi @sedmikraska You can use following code
function profile_visibility_subnav() { global $bp; bp_core_remove_subnav_item( 'settings', 'profile' ); } add_action( 'bp_setup_nav', 'profile_visibility_subnav',999 );
Hi,
thanks a lot for quick response. It works. 🙂
Could you please provide me with the code that will delete the sentence:
1) “This field can be seen by: Everyone” in the Profile page > Edit > Basic Information (/profile/edit/group/1/).
2) “This field can be seen by: Everyone” in Register page under field Address
3) In Register page under field Name. I would like to enforce field visibility to be seen by Everyone and delete the same sentence “This field can be seen by: Everyone”.
Thank you very much,
DanaHi @vapvarun,
are you able to help me with my next request ? Or should I submit it as new request ?
Thank you very much,
DanaYou can use following custom css
.buddypress-wrap .standard-form .field-visibility-settings-header { display: none; }
Hi @vapvarun,
it didn´t help. I copied code into css but nothing has changed. Everything remains the same.
Is there any other way to solve this issue ?
Thank you,
Dana
- You must be logged in to reply to this topic.