Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum wpForo Support Forum

[Closed] Opens notifications in a new tab


danniee
Posts: 104
Customer
Topic starter
(@danniee)
Member
Joined: 3 years ago

Sorry, feels like I am bombarding you guys with issue reports :/

I've noticed that when you click any link in the notification box, it opens in a new tab. Is there anyway to stop this from happening? I wish for it to open in the same tab/window. Thank you.

6 Replies
Astghik
Posts: 5139
Admin
(@astgh)
Support Team
Joined: 4 years ago

You can use this JS code:

jQuery(document).on('click','.wun-nright a',function(){
       jQuery(this).attr('target','_self');
});

This article should be helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress

danniee
Posts: 104
Customer
Topic starter
(@danniee)
Member
Joined: 3 years ago

Thank you. Is this something you could consider adding as an option in the settings? I don't know how to add this code :/

1 Reply
Astghik
Admin
(@astgh)
Joined: 4 years ago

Support Team
Posts: 5139

@danniee,

Just follow the instruction provided in the link. You don't need to change anything in the code.  

danniee
Posts: 104
Customer
Topic starter
(@danniee)
Member
Joined: 3 years ago

Sorry I don't get it. The article is quite extensive and suggests all sorts of things like editing my functions.php (which I failed) or install yet another plugin (which doesn't seem optimal just to accomplish this).

danniee
Posts: 104
Customer
Topic starter
(@danniee)
Member
Joined: 3 years ago

I really think you guys should consider changing this so it opens in the same tab. That's how Facebook notifications work and almost everywhere else. It doesn't make sense to open it in a new tab because it's not external links.

1 Reply
Tom
 Tom
Admin
(@tomson)
Joined: 7 years ago

Support Team
Posts: 3752

@danniee,

ok this is also added in the consideration list. I'll update this topic once we considered adding it.

Share:
Scroll to top