Hello,
I’m using a short code of:
[sc name="openurl" link="https://mymailbox.com" text="mail"]
and HTML of:
<a href="%%link%%",target="_blank">%%text%%</a>
I cannot get it to open a new tab (Chrome). It only acts as if the target is _self.
Any assistance appreciated!
Of course after I post I see the problem. No comma before the target=.
Thanks anyway!
Hi @schwabische
Sorry for the late reply.
This should work as expected unless the links are not manipulated by wordpress or other plugins before being displayed.
Can you please right click the link -> Inspect and check the HTML tag ? Is is the same as you have in shortcode content /
If not then there is something changing the tag.
Please do let me know further on this.
Thanks, Aakash
Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.