Hi,
When the user is logged in, his name appears at top left along with avatar.
https://prnt.sc/lmmacs
When the user name (mike in the screenshot above) is clicked, it should direct to another link:
https://www.mysite.com/profile/
Can you pls guide me on how to do this?
rgds
@el_experts
In the code, we are actually fetching the avatar name using a function and no action is present there on which I can apply custom code.
View Profile Link is already present, you can use that:
http://prntscr.com/ln05dg
This reply has been marked as private.
This reply has been marked as private.
@diana,
When you click the avatar name, it leads to Buddypress profile page. (https://www.mysite.com/members/username/)
I don't want this, since I am using some other social network plugin other than Buddypress. (As you may have noticed from the links I've given, the Buddypress profile page looks absolutely ugly. And it appears there is no way to make it look beautiful.)
You are saying you cannot redirect this to some other page.
In that case, is it possible to remove the hyperlink? Can we make the user name non-clickable?
rgds
@el_experts,
Use this jquery code and paste in wp-admin > WPLMS > Footer > Google Analytics Code within the script tag
<script>
$(document).ready(function() {
$(".logged-in #sidebar-me #username a").removeAttr("href");
});
</script>
The above code will remove the hyperlink from the username and it will not redirect to any page