Navigation überspringen

[Gelöst] File link not in Raw open in new tab

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 years. 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 -

Zeitzone des Unterstützers: America/Jamaica (GMT-05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von alejod vor 4 years.

Assistiert von: Shane.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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!