Replacing top bar to redirect to BuddyPress

Posted in: Newspaper
Post count: 5

Hey Everyone,

I was wondering on how to make it so when a user clicks on their name on the top bar that it redirects to my BuddyPress profile instead?

Here’s a reference (I’m talking about the name all the way on the left) – https://gyazo.com/7650bac328c761724481ed3c7340c4df

Thanks!

Post count: 22421

Hi,

Unfortunately there is no setting that can do this. You will have to use 301 redirects. Please try this method: http://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/

Thank you!

Post count: 6

Follow the instructions for Headers on this page about child theming for Newspaper: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Then, on line 52 of top-menu.php change the following code:

… get_author_posts_url($current_user->ID) …

to the following:

… bp_core_get_user_domain($current_user->ID) …

Now the user links to their BuddyPress profile instead of their author page.

Post count: 174

That code worked for me, it took me to the buddypress profile, but parts of site template went missing (sidebar, footer, etc)

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.