[ad_1]
[ad_2]
I run a directory website and I noticed that some of the clients are using their UTM links when they fill in their website addresses via their user account. That’s fine, however, on the front end of the live site, the website address displays and it’s so long.
Ideally I’d like it to just say “visit website” vs have the whole address showing, especially with so many using UTM.
The site uses esc_url in the php file

I’m not really sure what the problem is? Just change the PHP template file to output whatever you want? <a href=”<?php esc\_url($your\_var);?>”>Visit Website</a>
Edit: Of course, if this is a theme you did not create, you’ll need to create a child theme to modify the template file. Otherwise, if you edit the theme itself, whenever you update it, your change will be removed.
I’m not sure how you’re displaying the content on front-end.
If you’re using a custom template to display the content, then you can easily edit it.