Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove a tab from profile ?

  • Avatar of shemada
    shemada
    Participant

    @shemada

    Hello,

    I would like to remove a tab from the profiles.

    I have installed the “Events Manager” plugin and , it added an ‘Events’ tab to the users profiles ..

    How can I remove it ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You could look at the source code using firebug or even chromes developers tools then in your child themes CSS put something like this:
    .li events {
    display: none;
    }
    Keep in mind the .li events is just an example because you will have to target the specific element.
    The display: none; will make it disappear when you find that element.

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @shemada – to do this properly, you need to use the bp_core_remove_nav_item() function.

    Add a call to it in your theme’s functions.php file passing in the ID of the Events nav item.

    If you Google on here for ‘remove_nav_item’ you should find plenty of previous threads / examples.

    Avatar of shemada
    shemada
    Participant

    @shemada

    I’m not really in that coding …

    I found this ..
    https://www.box.com/s/38dc2bf1deec9761d702

    Can you please guide me through this ?

    If the pic you found is correct you could try adding this to your child themes style.css:
    #events-personal-li {
    display: none;
    }

    I do agree that Rogers method is the proper way. This is just a shortcut if you can’t code and it won’t cause the white screen off death or errors if you mess it up.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    `function my_func_remove_xprofile_tabs(){
    global $bp;
    bp_core_remove_nav_item( ‘events’ );
    }
    add_action( ‘bp_setup_nav’, ‘my_func_remove_xprofile_tabs’, 15 );`

    Avatar of shemada
    shemada
    Participant

    @shemada

    @modemlooper excellent .. thank you !!

    works great

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

You must be logged in to reply to this topic.