Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Activity loop


  • mika89
    Participant

    @mika89

    Hello everyone,

    I need to filter my activity stream, and I got that I needed to modify something in the activity-loop.php located in the bp-default theme directory. The thing is that I’m using a theme that is not inherited from bp-default. I’m using the theme hueman theme which is a theme made for WordPress. I’m creating a child theme in order to avoid altering the core files of the theme.

    Now my problem is that I don’t know where to put the few code lines I found:
    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ).’&max=5′ ) ) : ?>

    When I replace the code in bp-default/activity/activity-loop.php it doesn’t make any differences…

    But the thing is that I don’t really understand how it works… In the theme I m using there is no activity loop related file, do I have to create it in my child theme directory ? Because if I m using a theme that is not bp-default, the code in it must not be read right ??

    I’m a bit lost ^^ please help !!

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

  • mika89
    Participant

    @mika89

    FYI I use last version of both BP (2.0) and WP(3.9)


    Tbarnes37
    Participant

    @tbarnes37

    To customize your activity loop, I believe you’ll want to copy the ‘activity’ folder from ‘buddypress/bp-templates/bp-legacy/buddypress’ into the root folder of your theme. Then edit the activity-loop.php file within that new copy of the ‘activity’ folder.


    bp-help
    Participant

    @bphelp

    @mika89
    Please review:

    Theme Compatibility & Template Files


    You will need to copy the buddypress folder from your-site\wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress
    Place this in the root of your child theme. Then simply navigate to activity\activity-loop.php in that same folder and make your changes there. Just remember the folder structure needs to stay the same as it was when you copied it over to your child theme.


    mika89
    Participant

    @mika89

    Thank you for your answers, I’ll try this !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Activity loop’ is closed to new replies.
Skip to toolbar