How to change link of logged in users on top left of top menu?

Posted in: Newspaper
Post count: 2

When you log in the member’s name shows up in the top menu on the left. The current link is to the author page of that person but I would like to change this to simply point to a static link like ‘/my-account’. How can I tweak this?

Post count: 20688

Hi,

I believe you are referring to the user name that is displayed in the top menu when you are logged in
https://www.screencast.com/t/IkKmkYq6e
The user name will direct by default to the author page, there is no option in the them to change this functionality.
That could only be changed by modifying the theme files. This is where the link is defined and where you will have to make modifications that you need
https://www.screencast.com/t/rSzqwAqqrBF
Or maybe try a redirect plugin
http://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/

Thanks

Post count: 2

Thanks I’m okay with changing straight from the theme. So what would I need to change the following to get it to go to mysite.com/my-account.

Change:

. get_author_posts_url($current_user->ID) .

with

?

I tried simply putting the URL but it gave some parsing error.

Post count: 20688

Hi,

You could enter a custom URL instead of the default functionality
https://www.screencast.com/t/5c7qb81HAjgJ
When clicked the user name will direct to the address you enter there.

Thanks

Post count: 1

is there a way to change the Display name to say ‘My Profile’ Instead? and how do i add this to the child theme so i wont have to change it each update?

Post count: 23312

Hello Lowcarbsmeal,

For more information about Child Theme support, please check the documentation from here
-> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks.

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