Get the right user profile link

  • In Progress
    Posted in: BlackFyre  
  • Member
    SevenRichieWhite
    June 15, 2015 at 1:05 am #62353

    Hello Friends,

    if you click on the “View your profile” button you will redirected to a wrong url. Note: BuddyPress must be installed!

    You can get the right url when you edit the header.php file. Better use the header.php of your Blackfyre child theme.

    Open the header.php and find on line 117:
    <a class="btns settings" data-original-title="View your profile" data-toggle="tooltip" href="<?php echo esc_url(get_edit_user_link());?>"><i class="fa fa-user"></i> </a>

    Replace this line with the following code:
    <a class="btns settings" data-original-title="View your profile" data-toggle="tooltip" href="<?php echo esc_url(bp_loggedin_user_domain());?>"><i class="fa fa-user"></i> </a>

    Again: Its only working with BuddyPress! If you don’t use BuddyPress, please do not change this code.

    Cheers

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.