The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Enable Profiles URL...
 
Share:
Notifications
Clear all

[Solved] Enable Profiles URL stop open in new tab

7 Posts
2 Users
0 Reactions
724 Views
Posts: 6
Topic starter
(@jimjoe)
Active Member
Joined: 2 years ago

Hey, 

I've the "Enable Profiles URL" option activated so users can click on an author's comment and then get linked to his authors page. It always opens a new tab. How to make it just to work like a normal link without opening a new tab? 

Looking forward to your response!

6 Replies
Asti
Posts: 7664
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @jimjoe,

Use the following hook code:

add_filter("wpdiscuz_author_link_attributes", function ($attrs) {
    $attrs["target"] = "_self";
    return $attrs;
});

Put the code in the WordPress active theme functions.php file.

This article should be helpful for you:   https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

Please delete all kinds of caches and check again. 

wpDiscuz also has a built-in caches system Please delete this cache as well. It's located in the Dashboard > wpDiscuz > Settings > General Settings tab. 

image
Posts: 6
Topic starter
(@jimjoe)
Active Member
Joined: 2 years ago

Hey @Asti

Thank you for your fast response. 

I inserted the above code into the Plugin "Code Snippets" (see screenshot). All caches of litespeed and wpdiscuz have been cleaned, but it still isn't working. 

Do you have any other suggestion?

Screenshot 2023 02 02 at 15.20.26

Also switching it to "run everywhere" doesn't change anything.

 

4 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

Please leave the example URL.

(@jimjoe)
Joined: 2 years ago

Active Member
Posts: 6
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

@jimjoe

The code works fine on all our test websites. Please send the admin login details to info[at]gvectors.com email address. I'll ask the developers to check the issue for you 

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7664

We have not received a reply from you for over a couple of weeks, therefore we will be closing this topic. Please create a new one if you require any additional help.

Thank You!

Share: