Support » Plugin: Gutenberg » Set button target

  • 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.

    Thanks,
    Jamie

Viewing 10 replies - 1 through 10 (of 10 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:

    https://drive.google.com/open?id=1EB8FG1pb9PCHik7dRJ2J293ICuIWxwPX.

    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 1 month, 2 weeks ago by  jamieedwards.
    • This reply was modified 1 month, 2 weeks ago by  jamieedwards.

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

    Happy weekend!

    Moderator Marius L. J.

    (@clorith)

    Hiya,

    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.

    Hello
    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.
    Gilles

    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.

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