Skip Navigation

[Resolved] Single field inside a view with target blank

This support ticket is created 4 years, 5 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1713839

Tell us what you are trying to do?
Inside a table view loop with a single field I am trying to add a link to the field value which is a file. I was able to add the custom text and the link. But I am not able to setup target blank.

Is there any documentation that you are following?
I did not find table view on your docs or single field with links.

What is the link to your site?
Last two column values I want to be target blank. hidden link
How can I add target blank?
How can I make it a button?

#1713875

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Juan,

Thank you for getting in touch.

Unfortunately you're not able to set this to open in a new tab as there is no option for this.

Thanks,
Shane

#1715181

There should be way to add it in the html. Could you please investigate further?

#1715189

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Juan,

You can do it by using Javascript.

Add the following to your site using the plugin in the link below.


jQuery('.tb-field a').attr("target", "_blank");

https://wordpress.org/plugins/custom-css-js/

Ensure that the script is active and this should apply the attribute to the link so that it can be opened in a new tab.

Thanks,
Shane