The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Feature Request - o...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] Feature Request - open comment URLs in new tab

3 Posts
2 Users
1 Reactions
1,112 Views
Posts: 41
Topic starter
(@wpuser)
Trusted Member
Joined: 5 years ago

Hi Gvectors,

In a future update, could we please have the option for comment links to be opened in a new tab or window? I've searched these forums and have seen solutions that require js code or changing the functions.php file. The problem with this is that there's a concern, particularly among non-developers, that it could break our site if we do it incorrectly. 

A simple toggle that you can switch on/off would be great!

Thanks!

2 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @wpuser,

I may suggest you check out the solution provided in this support topic: https://wpdiscuz.com/community/postid/3646/

If you don't want to use some other plugin, you can use the following code:

function t4a_comment_links_in_new_window($text) {
    return str_replace('<a', '<a target="_blank"', $text);
}
add_filter('comment_text', 't4a_comment_links_in_new_window');

Add the following code to your functions.php of your theme. Here is a helpful article: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

 

1 Reply
(@wpuser)
Joined: 5 years ago

Trusted Member
Posts: 41

Thanks! Will try this.

Share: