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 Reactions
1,030 Views
Posts: 26
Topic starter
(@cihan)
Eminent Member
Joined: 4 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: 8050
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 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: 4 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: 8 years ago

Illustrious Member
Posts: 8050

@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: 4 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: 8 years ago

Illustrious Member
Posts: 8050

@cihan,

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

Reply
Share: