Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Activity Stream Homepage Compatibility Issues

@sbrajesh

Participant

Hi,
You are right about creating a home.php or front-page file and putting the content from activity/index.php

Here are a couple of things that I may suggest to improve it.
Since you are using the code (which is part of bp-legacy template and most theme include that), you activity/index.php does not have header/footer.
The easy way is.
1. copy the page.php from your theme and rename it to home.php
2. Now look for the section where you see the loop code( something like while(have_posts()) ..etc, replace only that section of code with the the content of actvity/index.php or you can put this line


<?php bp_get_template_part( 'activity/index' ); ?>

It will include the activity loop inside your home page.

You may want to look for the div/classes that is generated for your post. If you can inject that, it should look fine(as your theme supports bp and they should have the css.

If it does not work, please post the content of your homepage on pastebin and I will modify it for you 🙂

Skip to toolbar