Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where to find bp_activity_delete_link button in BP-DEFAULT theme to customize it

  • Avatar of ayushpratap
    ayushpratap
    Participant

    @ayushpratap

    I need to find bp_activity_delete_link in bp-default theme directory, so that I can customize it’s style to give it a desired look. I am using child theme for BP_DEFAULT theme, however, I dont think that’s any necessary info. I just need to find where to find the delete activity button in Bp-DEFAULT theme directory, it’s not in entry.php, activity-loop.php, index.php (activity), or any other templates in activity folder.

    Thank you already.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of ayushpratap
    ayushpratap
    Participant

    @ayushpratap

    Avatar of meg@info
    meg@info
    Participant

    @megainfo

    You will find the function in plugins\buddypress\bp-activity\bp-activity-template.php

    the delete button have css class ‘.delete-activity’, so you can persoalize it by add some css to this class.

    Or …

    use this filter bp_get_activity_delete_link (the filter accept $link param (html code).

    
    add_filter('bp_get_activity_delete_link, 'my_new_bp_get_activity_delete_link');
    
    function my_new_bp_get_activity_delete_link( $link_html ) {
       //here you can use regexp to find class=".... and change it
       return $link_html;
    }
    
    
    Avatar of ayushpratap
    ayushpratap
    Participant

    @ayushpratap

    Just great !. Thank you, in celestial units dear.

    Can you also lemme know where can I change/find the default labels of activity tabs like “all activity”, “personal”, “mentions”, “favorites” to something else ? and also the search drop down list viz. “members” , “post” to something else.

    Avatar of meg@info
    meg@info
    Participant

    @megainfo

    Edit plugins\buddypres\buddypress.pot with PO-EDIT tool (http://www.poedit.net/) and change what ever you want, then save a new file .mo will be created in the same folder.

    Avatar of ayushpratap
    ayushpratap
    Participant

    @ayushpratap

    Okayy… Wow that’s something totally new to me, but am checking it out, and yes, thanks a lot to you of course sir.

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

You must be logged in to reply to this topic.