How To Guide: Redirect the Profile Link to bbPress Profile

  • In Progress
    Posted in: Game Addict  
  • Member
    WarMoose
    March 18, 2014 at 5:51 pm #31009

    This isn’t a question, I just thought others may find this helpful. If you want to change the redirect link for the “Edit your profile” link when you click the person icon at the top right, you can do so without much difficulty. Make sure you use a child theme though, you can google wordpress child themes to learn more on that, otherwise if you edit the parent theme then your changes will be reverted each and every update to the theme.

    Once you have your child theme make a copy of header.php from the parent and edit it with an editing program like notepad++. You will then want to make line 117 look like this:
    <a href=”<?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>”><?php _e(“Edit your profile”, ‘addict’); ?> </a>

    With a little bit of research you should be able to easily figure out how to redirect to other pages. Just make sure that your new header.php also has lines 28 and 29 also access the fonts.php and colours.php from the parent. You can do this by making the lines look like this:
    <?php include_once ‘./wp-content/themes/gameaddict/css/fonts.php’; ?>
    <?php include_once ‘./wp-content/themes/gameaddict/css/colours.php’; ?>

    Just upload the new header.php into your child theme folder and you should be done. Hopefully someone found this of interest.

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

Comments are closed.