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.
Hello
When I click on the username and profile picture it opens in a new window. There were codes that prevented this, it doesn't work anymore. 🙁
How can I get it to open in the same window?
Hi @cihan,
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.
Hello thank you very much.
But not working:(
thank you asti, working.
and i found this code this is for profile picture;
add_filter('wpdiscuz_avatar_link_attributes', function ($attr) {
if (isset($attr['target'])) {
$attr['target'] = '';
}
return $attr;
});