Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Profile Visibility Subnav


  • sedmikraska
    Participant

    @sedmikraska

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

    Thank you,
    Dana

Viewing 6 replies - 1 through 6 (of 6 total)

  • sedmikraska
    Participant

    @sedmikraska

    Thank you in advance for your support 😉


    Varun Dubey
    Participant

    @vapvarun

    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 );

    sedmikraska
    Participant

    @sedmikraska

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


    sedmikraska
    Participant

    @sedmikraska

    Hi @vapvarun,

    are you able to help me with my next request ? Or should I submit it as new request ?

    Thank you very much,
    Dana


    Varun Dubey
    Participant

    @vapvarun

    You can use following custom css

    .buddypress-wrap .standard-form .field-visibility-settings-header {
        display: none;
    }

    sedmikraska
    Participant

    @sedmikraska

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar