Skip Navigation

[Resolved] Stop all links from opening in a new window

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by nickL-4 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2070979

If I add a link to my view it always opens in a new window on the front end, even if I don't check that box. I've tried adding target='_self', but that just gets overridden with target='_blank' and rel="noopener" being added to the link.
When I add a link using the 'Post title with a link' field it works as expected, but I actually want to show different text on the link and I cant see a way to do that either.

My staging site is here hidden link
And the issue is on the links (styled as blue buttons) "Make a Permanent HR Hire" and "Get Started". These should both link to the same page, not in a new window.
The code in the view is
Get Started
But the generated code on the front end is
hidden link" class="button small-only-expanded">Get Started
How can I prevent that Target="_blank" from mysteriously appearing?

#2071125

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please what to what view you have added the code as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2072561

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added the attribute target="_self" to both the anchor tags.

Can you please check now and confirm it works as expected.

#2072745

My issue is resolved now. Thank you!