Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing reply button from activity stream…


  • bdigges
    Participant

    @bdigges

    What I’d like to do is simple. Just remove the button associated with replying. I want to keep all comment functionality intact.

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

  • bp-help
    Participant

    @bphelp

    @bdigges
    use a developer tool like firebug for firefox or chrome developer tools to target the element then add for example:
    #the-element-targeted {
    display: none;
    }


    danbpfr
    Participant

    @chouf1

    @bphelp

    hidding things with CSS is not best practice, even if it works. The button is still on the page. Display:none just hide it from visitors. But the code stays in place.


    @bdigges

    A simple way to remove the comment button from the activity stream is to add a filter in your theme functions.php
    * Determine if a comment can be made on an activity item
    add_filter('bp_activity_can_comment','__return_false');
     

    There’re some other filters in bp-activity-template.php, such as
    * Determine if a comment can be made on an activity reply item
    * Determine if an favorites are allowed…

     


    bp-help
    Participant

    @bphelp

    @chouf1 Thanks for the better solution! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing reply button from activity stream…’ is closed to new replies.
Skip to toolbar