Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Hello all,
Is there a way to change the target link of the “Shop account” button in the user’s profile page?
Thank you!
you can use this code
add_action( 'wp_head', function () { ?>
<script>
jQuery(document).ready(function($) {
$(".wpforo-profile-home .wpf-field-type-url a[href^='http']").attr('target','_blank');
});
</script>
<?php } );
either via How to Easily Add Custom Code in WordPress (without Breaking Your Site)
or in the functions.php of your WP theme
replace " _blank " with the target you want
I used snippets plugin and activated the above code, but it didn't work.
The target link has not changed.
I don't know if I missed anything, but I followed the steps as described.
More specific:
The current link of "Shop account" button in user profile is 'https://mysite.com/my-account/' and I would like to change it to: 'https://mysite.com/myshop/'
Thank you again for your time.
Hello again, anyone that may suggest a solution?
The button is in "wpf-pp-menu-item".
I have attached an image indicating the button to which I am referring to for better understanding.
Thank you.