Support » Plugin: Gutenberg » Set button target

  • Resolved jamieedwards


    Hey everyone, can someone tell me how to set the target in the button block? I would like to have it open in a new window “_blank”. I have been digging around the settings and I’ve looked everywhere but can’t find this.


Viewing 11 replies - 1 through 11 (of 11 total)
  • Jamie, I’m just new to checking out this plugin also, but I found the link options, here’s a screenshot. The link out is to my Google Photos:

    I just selected the already embedded link (left or right mouse button) and then select the three dots on the rights to provide the drop down options.

    Hope this helps, cheers Dennis

    Hmm strange, I am using the latest versions of Gutenberg and WP core and I don’t see this same thing when I add a button block, I’ll see if I can remember to send a screenshot tomorrow, thanks mate.

    Same here. I have the possibility to add a _blank at links in paragraphs or tables, but NOT at the button link. I tried in Edge, Chrome and Firefox:

    Ok, so I am not going crazy! πŸ™‚ Thanks Ursula. Here is my screenshot:

    • This reply was modified 3 months, 2 weeks ago by  jamieedwards.
    • This reply was modified 3 months, 2 weeks ago by  jamieedwards.

    So we’re just two πŸ™‚ Hope that someone will read this and answer.

    Happy weekend!

    Moderator Marius L. J.



    It’s not possible to change the target of buttons at this time. I won’t give a guarantee that we’ll be adding that to core as it has negative accessibility implications, which we strive to ensure users follow.

    It is this kind of detail that the use of Gutenberg can put off many users. It is unfortunate to be so restrictive as it renders this option useless.

    I suppose we could just add the target in the html on the button, the average user won’t know how to do that but at least it’s possible.

    Maybe you could add a plug-in to make all of the links that are off-site open in a new window? Or do that in jQuery, JavaScript, if you have a special case where one place you want a button to link off site in a new window and another place where you want a button that links off site to not open in a new window.

    It is interesting that it is okay to set a target “_blank” for links in a Paragraph, but there is an accessibility issue for links that are in buttons. πŸ˜‰

    Hi Jamie
    Yes I know how to do it but it removes all the use of the concept of block Gutenberg since we are left with a personalized block html.
    For my part, I use the extension Atomic Blocks and their “AB Button” provides the missing option to Gutenberg in the rules of the art that is to say with the small blue cursor for an opening in another window.

    This is a grave issue honestly, I am struggling using Gutenberg now trying to add open in new tab from a button. I can’t believe being so difficult and such an inconsistent interface !
    I am starting to have Guteneber mainly cause it seems promising but making things harder and more difficult is going to drive things in the opposite way ..

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