WordPress.org

Support

Support » Plugins and Hacks » BuddyPress Activity Plus » [Resolved] Group Documents icon redundant in loggedin members profile/activity

[Resolved] Group Documents icon redundant in loggedin members profile/activity

Viewing 4 replies - 1 through 4 (of 4 total)
  • “Round the houses 20 times and back” very temporary solution

    function add_bpgroupdoctyles() {
    global $current_user, $wpdb;
    $pageurl = $_SERVER['REQUEST_URI'];
    if (strpos($pageurl,'members') !== false) {
    ?>
    
    <style type="text/css">
     #bpfb_addDocuments {
    display:none !important;
    }
    </style>
    
    <?php
    }//End if ( $pageurl !== false ){
    }
    add_action('wp_head', 'add_bpgroupdoctyles');

    a bit over the top !!

    Mike

    @michael-copestake

    WPMU DEV Support Staff

    Hi @valuser

    Aren’t there some classes added to the body for this? I don’t know without looking at your site, but on my test install it adds ‘my-activity’ to the body tag, meaning that you could just add this to your theme’s stylesheet:

    .my-activity #bpfb_addDocuments {
    display: none !important;
    }

    Does this do the trick?

    It does indeed do the trick!

    Never underestimate my stupidity!

    Many thanks.

    Marking this as resolved

    Mike

    @michael-copestake

    WPMU DEV Support Staff

    That’s great, glad I could help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Group Documents icon redundant in loggedin members profile/activity’ is closed to new replies.
Skip to toolbar