Hi,
Can you let us know where is the profile page link in the menu or our users listing page?
Regards,
Patrik
Hi Patrik,
I am talking about the users’ listing page, we have a menu link to display this page, but then when someone clicks on one of the users, that is where we want the magic to happen.
Here is the Users’ List
Thanks
Hi,
Can you add the following code in functions.php of the currently active theme or via the Code Snippets plugin and let me know if it helps or not?
add_action('wp_footer', 'cpp_wp_footer_cb');
function cpp_wp_footer_cb(){
?>
<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery('.uwp-profile-name .uwp-user-title a').click(function(){
window.open(this.href);
return false;
});
});
</script>
<?php
}
Regards,
Patrik
This partially works.
The display has three (3) links, the banner image, the profile image and the persons title, the aforementioned code only works on the persons title.
Looking at the styles I tried adding uwp-profile-header, but this made no difference.
How do I apply this to the whole header irrespective of where the user clicks?
Hi,
You can modify or replace with the following code and let me know if it helps:
add_action('wp_footer', 'cpp_wp_footer_cb');
function cpp_wp_footer_cb(){
?>
<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery('.uwp-profile-name .uwp-user-title a, .uwp-profile-header a').click(function(){
window.open(this.href);
return false;
});
});
</script>
<?php
}
Regards,
Patrik
Hi, just a quick follow-up.
Was the issue solved for you or do you need any help?
Regards,
Patrik
Sorry, I didn’t get a message that you replied (the first time).
That is beautiful, works a treat!
Cheers