Skip Navigation

[Resolved] File link not in Raw open in new tab

This thread is resolved. Here is a description of the problem and solution.

Problem:

Open URL custom field in a new tab when using the types shortcode for the url field. E.g [types field='url'][/types]

Solution:

To do this you will simply need to add the target='_blank'

The final shortcode should look like
[types field='url' type='_blank'][/types]

This support ticket is created 2 years, 8 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 2 replies, has 2 voices.

Last updated by alejod 2 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2380403

I'm using [types field='file-anmeldeformular' title='Anmeldeformular' class="et_pb_button et_pb_button_0_tb_body et_pb_bg_layout_dark" ][/types] to show my button.
I need the file to be opened in a new tab. Is there an option to do it in the shortcode and not showing the file link in RAW ?
I use Divi theme and i'm pasting the code in the theme builder . When i use the link in RAW mode it doesn't show it.
Thanks

#2380571

Shane
Supporter

Languages: English (English )

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

Hello,

Thank you for getting in touch.
You should be able to open the link in a new tab by adding the target="_blank" attribute.

 [types field='file-anmeldeformular' title='Anmeldeformular' class="et_pb_button et_pb_button_0_tb_body et_pb_bg_layout_dark" target="_blank" ][/types] 

Please try the above and let me know if it helps.
Thanks,
Shane

#2380589

My issue is resolved now. Thank you!