Skip Navigation

[Resolved] Need to add a hyperlink tag inside label

This support ticket is created 3 years, 6 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Ankit Katailiha 3 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2048125
checkbox-error.png

Hi Team,

Please check the attached screenshot. I want to add <a> tag inside label with target="_blank". It is for terms conditions checkbox and hyperlink for privacy policy url. Currently it is working with <a> tag but when I try to add target="_blank" inside <a> tag, the complete label is hidden.
Please let me know how we can fix this?

#2048187

Shane
Supporter

Languages: English (English )

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

Hi Ankit,

Thank you for getting in touch.

Can you trying adding the target='_blank' with single quotes instead of double quotes.

Please let me know if this helps.
Thanks,
Shane

#2050169
Screenshot 2021-05-10 132706.png

Hi,
I tried to add target='_blank' but after saving the changes the rel="noopener" added automatically and because of this double quote, the error generated and checkbox hide at frontend.
I have remove that rel="noopener" manually but again it added automatically.
Please check the screenshot.

#2050719

Shane
Supporter

Languages: English (English )

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

Hi Ankit,

Not sure why this is getting added, however you can workaround this by using the JS below.

jQuery(document).ready(function(){
  jQuery('#add_blank').attr('target', '_blank');
});

Just add an ID to your anchor tag and you can use the code above to add the target attribute.

Please let me know if this helps.
Thanks,
Shane

#2050789

My issue is resolved now. Thank you!