I’m using a short code of:
[sc name="openurl" link="https://mymailbox.com" text="mail"]
and HTML of:
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=.
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.
Marking this as resolved. Please reply back for any further queries on the same.
Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter