Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • schwabische
    Participant

    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!

    schwabische
    Participant

    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

    Marking this as resolved. Please reply back for any further queries on the same.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.