BuddyDev

Search

[Resolved] Customize website logo link to get redirected to BP profile when logged in

  • Participant
    Level: Master
    Posts: 497
    Daniel on #47204

    Hi,

    I would like to use a condition and customize the url of the website logo when a user is logged in, that when clicking on the main logo and user is logged in, it redirects the user to their BP profile and not to the website landing page.

    Is there a way I can achieve it?

    Thanks for your help.

    Regards
    Daniel

  • Participant
    Level: Master
    Posts: 497
    Daniel on #47315

    Hi,

    I know that this will be customized code that will need to be added on my themes function php file:

    
    /*Replace Login page url link*/
    function login_page_URL( $url ) {
    	$url = home_url( '/members/me' );
    	return $url;
    }
    add_filter( 'login_headerurl', 'login_page_URL' );

    But the code should have a condition that only for logged in users the main website url should change. That’s why I wanted to ask you if I could hire you to do the job? The goal will be that the logged in users will not see anymore the login landing page after they are logged-in and when they are clicking on the website logo, that they will get redirected to their BP page.

    I can pay via Paypal.

    Thanks for your feedback.

    Regards
    Daniel

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47323

    Hi Daniel,
    The above code is for your login page and not applicable for site’s other pages.

    The change needs to go into your theme/child theme somewhere.

    It is a minor task, please provide your FTP access and I will take care of it.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 497
    Daniel on #47336
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47353

    Hi Daniel,
    Please check now.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 497
    Daniel on #47360

    Hi Brajesh,

    That’s awesome, it works exactly how I wished! Finally this issue is resolved, a user has not come back because the user said she doesn’t know how to get back to her profile, it was also a cashing problem that the left sidebar did not refresh and which I could resolve in the meantime. So now the website looks much more professional.

    Thanks for the great work!

    Regards
    Daniel

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #47365

    Hi Daniel,
    Thank you for confirming.

    User experience is one of the things that needs a lot of attention in BP if it really aims to be helpful to community creators.

    Hoping that things will improve in future.

    I am glad your site is working better now.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved