Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change the number of activity items on a profile page?

  • @izzyian

    Participant

    I found this code and put it in my child theme functions but it does not work for me :

    //=Change the number of activity items to show per page
    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10′;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );
Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    Make sure that all the quotes are single and straight quotes, like so:
    $query_string .= '&per_page=10';

    @izzyian

    Participant

    Wow thank you it worked

    @izzyian

    Participant

    And if I wanted to get rid of the “whats new form” Is the best way to do it like this

    form#whats-new-form {
        display: none;
    }

    Or is it not recommended like that ?

    @mcpeanut

    Participant

    @izzyian, I believe if you use the code above it will also remove the Whats new form from your main activity stream too! If you want to hide it from just the profile pages i suggest trying this code.

    div#item-body form#whats-new-form {
    display: none;
    }

    Hope this helps

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change the number of activity items on a profile page?’ is closed to new replies.
Skip to toolbar