BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Can I make the logo direct to Site Activity *just* for logged in users?
- This topic has 5 replies, 2 contibutors, and was last updated 9 years, 1 month ago by Alyssa.
Question
March 3, 2015 at 8:16 am #36744@jgwolfensbergerHi guys –
So we know the site logo – when clicked – can take the member to a static home page. We use our home page to introduce site guests to our offerings in the hopes that they will then register. Once a registered member is logged in, however, the home page becomes irrelevant.
Our site logo should continue to direct to the homepage for site visitors; but it would be awesome if the site logo could direct logged-in BuddyPress members to the Site Wide Activity page. Could this be accomplished?
James
Answers
March 4, 2015 at 10:57 am #36784@alyssa-buddyboss
AlyssaParticipant@jgwolfensberger copy header.php into your child theme find this within line 45:
<?php echo esc_url( home_url( '/' ) ); ?>
Change to this:<?php if(is_user_logged_in()){ echo esc_url( home_url( bp_get_activity_root_slug() . '/' ) ); }else{ echo esc_url( home_url( '/' ) ); } ?>
March 4, 2015 at 3:31 pm #36816@jgwolfensbergerDynamite, TJ – thank you! Also did this in our Super Mobile child… works really well to let logged in members click on the title bar and get right to the activity feed.
If you like, edit this line out of my post and notice that your sample might be clearer for some if it has the closing “?>” edited in – minor!
Five-star support from you guys 🙂
James
March 5, 2015 at 1:49 pm #36847@alyssa-buddyboss
AlyssaParticipantJames,
I don’t know what you are talking about my code looks great 😉
March 5, 2015 at 3:39 pm #36865@jgwolfensbergerAbsolutely! 🙂
Thanks TJ… our users responded really well to this change.
March 6, 2015 at 3:37 pm #36901@alyssa-buddyboss
AlyssaParticipantAny time
- The question ‘Can I make the logo direct to Site Activity *just* for logged in users?’ is closed to new replies.