BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Can I make the logo direct to Site Activity *just* for logged in users?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #36744
    @jgwolfensberger

    Hi 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

    #36784

    Alyssa
    Participant
    @alyssa-buddyboss

    @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( '/' ) );
    }
    ?>
    #36816
    @jgwolfensberger

    Dynamite, 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

    #36847

    Alyssa
    Participant
    @alyssa-buddyboss

    James,

    I don’t know what you are talking about my code looks great 😉

    #36865
    @jgwolfensberger

    Absolutely! 🙂

    Thanks TJ… our users responded really well to this change.

    #36901

    Alyssa
    Participant
    @alyssa-buddyboss

    Any time

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Can I make the logo direct to Site Activity *just* for logged in users?’ is closed to new replies.