BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Posts on the homepage…
- This topic has 9 replies, 2 contibutors, and was last updated 10 years, 2 months ago by Alyssa.
Question
August 21, 2014 at 4:33 pm #30838@multimartinHello,
I wondered if it is possible to have the full text of posts displayed on the homepage as opposed to just the summary?
Many thanks,
MartinAnswers
August 21, 2014 at 5:20 pm #30848@alyssa-buddyboss
AlyssaParticipant@multimartin absolutely! First child theme tutorial if you are not using one: https://www.buddyboss.com/child-themes/
Copy content.php from your parent theme to child theme then edit line 56 from this:
the_excerpt()
to this:
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'buddyboss' ) )
August 21, 2014 at 5:29 pm #30851@multimartinThanks – that’s brilliant. It worked!
Could you also help me with another problem. I already have lots of avatars uploaded via WordPress but BuddyPress or the theme is over-riding them and displaying a ‘Mystery Man’ – is it possible to have BuddyBoss use the WordPress avatars?
Martin
August 21, 2014 at 5:51 pm #30852@alyssa-buddyboss
AlyssaParticipant@multimartin add this to your child theme functions.php file:
remove_filter( 'avatar_defaults', 'buddyboss_addgravatar' );
August 21, 2014 at 5:52 pm #30853@alyssa-buddyboss
AlyssaParticipantadd this to remove the default BuddyBoss group avatar as well:
remove_filter( 'bp_get_group_avatar', 'buddyboss_default_group_avatar'); remove_filter( 'bp_get_new_group_avatar', 'buddyboss_default_group_avatar' );
August 21, 2014 at 6:02 pm #30855@multimartinHello again,
That seems to have just made the ‘Mystery Man’ avatars appear in the back-end too. Previously the front-end showed the Mystery Man avatars and the back-end showed my custom avatars.
Any ideas?
Martin
August 21, 2014 at 6:22 pm #30857@multimartinAdding
remove_filter( 'get_avatar', 'bp_core_fetch_avatar_filter', 10, 5 );
to the functions files means that my correct avatars display under ‘Users’ in the back-end but the avatar that displays on the front-end is the mystery man.August 22, 2014 at 9:25 am #30885@alyssa-buddyboss
AlyssaParticipant@multimartin the BuddyBoss Mystery Man is very similar to the WP version. Are you certain it is the same one?
August 22, 2014 at 5:41 pm #30897@multimartinI use a plug-in to make sure that Google Profile avatars are used as WordPress avatars. The plug-in sets these in WordPress as the accounts avatars – they display across all aspects of my WordPress MU site except the BuddyPress site – which displays the Mystery Man. I can change it to the BuddyBoss Mystery Man but it will still not display my of my WordPress avatars.
August 23, 2014 at 3:26 pm #30908@alyssa-buddyboss
AlyssaParticipant@multimartin this is the only needed code:
remove_filter( 'avatar_defaults', 'buddyboss_addgravatar' );
If you continue to have issues you will need to contact the plugin owner as the above code will cause the BuddyBoss functions to not load.
- The question ‘Posts on the homepage…’ is closed to new replies.