Skip Navigation

[Resolved] Link in new tab

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

Last updated by fredericR-2 4 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#2076249

Hello,
I am using the DIVI theme.
In a Toolset archive, I use dynamic content: how do I create a link that opens in a new tab? It doesn't seem to work with CSS rules.
Cordially.

#2076377

Shane
Supporter

Languages: English (English )

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

Hi Frederic,

Thank you for getting in touch. In order to provide the most accurate answer can you let me know on which block you are using the dynamic content option ?

Also can you provide a screenshot as well ?

Thanks,
Shane

#2079481
screenshot1 - (Dynamic Heading Text).png

Hello,

I use "Dynamic Heading Text".

Regards

#2079551

Shane
Supporter

Languages: English (English )

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

Hi Frederic,

Thank you for the screenshot. In order to do this you will need to add a custom class to the header and use JS to attach the target attribute to the anchor tag.

Example

jQuery(document).ready(function(){
  jQuery('.customclass a').attr('target','_blank');
});

Please let me know if this helps.
Thanks,
Shane

#2079553

Shane
Supporter

Languages: English (English )

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

Hi Frederic,

Thank you for the screenshot. In order to do this you will need to add a custom class to the header and use JS to attach the target attribute to the anchor tag.

Example

jQuery(document).ready(function(){
  jQuery('.customclass a').attr('target','_blank');
});

Please let me know if this helps.
Thanks,
Shane

#2080647
screenshot2.png

Hello,

It doesn't seem to work. Is this the way to proceed?

Regards

#2080771

Shane
Supporter

Languages: English (English )

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

Hi Frederic,

Can you send me a link to the exact page where this view is shown so that I can see what is happening?

Thanks,
Shane

#2083629

My issue is resolved now. Thank you!