Skip Navigation

[Resolved] open URL field type in a new window

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

Problem:
Is there an option to open URL field type in a new window?
Solution:
You can use URL filed with “ output='raw' “ as follows:

<a href="[types field='URL-FIELD-SLUG' output='raw'][/types]" target="_blank">Link text</a>

Relevant Documentation:

This support ticket is created 6 years, 10 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by davelow 6 years, 10 months ago.

Assisted by: Noman.

Author
Posts
#620845

Hi,

Is there an option to open URL field type in a new window?
I think the work around now is to set it as a 'single line' type and add target="_blank", and repeat the text field.

Maybe it'll be good to have an option when creating the field, or have i missed it totally?

Many thanks,
dave

#620899

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Davelow,

Thank you for contacting Toolset support. You can use URL filed with “ output='raw' “ as follows:

<a href="[types field='URL-FIELD-SLUG' output='raw'][/types]" target="_blank">Link text</a>

So that, it will make link in same way as single line filed.

Thank you

#620957

neat. thank you Norman!