Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

How can I open external links in WPDiscuz comments in new tab.

2 Posts
2 Users
0 Reactions
3,298 Views
WPDiscuzNoob
(@wpdiscuznoob)
Active Member
Joined: 8 years ago
Posts: 7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#2762]

Hi,

First of all, thank you for creating such an awesome comment plugin. 🙂

Now coming to my question, I want to know if I can make some changes in `functions.php` using the `add_filter()` or any other such function so that external links posted by users in comments always open in new tab and they have a `nofollow` attribute?

Thanks.



   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thank you WPDiscuzNoob,

wpDiscuz uses WordPress native comments functions and doesn't change the logic of the external website link system. 

As this is Wordpress native logic we'd recommend finding the solution using some WordPress plugins e.g the Comment Link Remove plugin. 

After installing this plugin you'll need to enable the "Open Comment Links in New Tab" option. This option is located in Dashboard > Settings > QC CLR Settings admin page.

external link


   
ReplyQuote
Share:
Scroll to top