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.
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…