Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing Activity Stream Front Page

  • Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    What file do I use to edit the area right above “Site Activity” or, if you’re logged on, “What’s new ….?”

    I’d like to put in a smooth slider and I’ve played with every page of code I can find but can’t get it to show up there…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    It depends which page. You’ve got three instances or so, the directory activity page, the profile page and single group page.

    To always show your slider above all instance you could stick it inside the post-form.php with the following do_action:

    <?php do_action( 'bp_before_activity_post_form' ) ?>

    Otherwise, for the directory activity you’ve got the following do_action:

    <?php do_action( 'bp_before_directory_activity_content' ) ?>

    Or for profile views and single group views you have:

    <?php do_action( 'bp_before_member_activity_post_form' ) ?>

    <?php do_action( 'bp_before_group_activity_post_form' ) ?>

    That should give you all possible instances. Just code your slider in your bp-customs.php and use an add_action for your area of choice. Hope this helps.

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    Thanks @mariusooms

    I’d like it just on the directory activity page, which is my front page.

    My slider code is simply:

    if ( function_exists( ‘get_smooth_slider’ ) ) {

    get_smooth_slider(); }

    Where exactly do I put this code?:

    <?php do_action( ‘bp_before_directory_activity_content’ ) ?>

    <?php if ( function_exists( ‘get_smooth_slider’ ) ) {

    get_smooth_slider(); } ?>

    If it’s in post.form.php, it shows up on member profile pages, not the front page…

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

You must be logged in to reply to this topic.