The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
I want it to open i...
 
Share:
Notifications
Clear all

I want it to open in the same window

6 Posts
2 Users
1 Likes
543 Views
Posts: 26
Topic starter
(@cihan)
Eminent Member
Joined: 3 years ago

hello,  thanks for this nice add-on

petteq.net

When I click on the profile picture, I want it to open in the same window.

 

If you don't click on the profile picture, it opens in a different tab. 🙁 

 

thank you 

5 Replies
Asti
Posts: 7128
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

Hi @cihan,

You can use the following JS code:

jQuery(document).ready(function(){
     jQuery("#wpdcom .wpd-avatar a").attr('target', '_self');
});

Here is a helpful article: https://www.collectiveray.com/add-javascript-to-wordpress

Reply
2 Replies
(@cihan)
Joined: 3 years ago

Eminent Member
Posts: 26

@asti

Hello 

thank you so much asti. 🙂

 

but I couldn't find where to write this code 🙁

 

 

 

 

 

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7128

@cihan,

Here is a helpful article: https://www.collectiveray.com/add-javascript-to-wordpress

Please follow the instruction provided by me. 

Reply
Posts: 26
Topic starter
(@cihan)
Eminent Member
Joined: 3 years ago

thank you very much  Asti 🙂

I solved my problem like this : 

theme editor --- functions.php    and  add this code

 

 

add_filter('wpdiscuz_avatar_link_attributes', function ($attr) {
if (isset($attr['target'])) {
$attr['target'] = '';
}
return $attr;
});

 

 

I have one more problem:), please help me

 

How to make wpdiscuz full width? 

 

like this;

https://gvectors.com/forum/how-to-and-troubleshooting/how-to-make-wpdiscuz-full-width/#post-13670

 

div#comments {
width: auto !important;
max-width: 100% !important;
}

this code not working 🙁

 

thank you very much

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7128

@cihan,

Could you please leave some example URL? We'll provide a CSS solution for you. 

Reply
Share: