• Is there a way to have a button open in a new tab or window? I appreciate the help!

    • This topic was modified 5 years, 2 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • If you have Used link like
    <a href="" target="_blank" rel="noopener noreferrer"></a>

    And if you have used the button element
    <button onclick=" window.open('https://google.com','_blank')"> Google</button>

    In this Site I think you have used the <a> element so you can user target="_blank" attribute

    Thanks

    • This reply was modified 5 years, 2 months ago by Jan Dembowski. Reason: Formatting
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    How are you adding a button to your content?

    Thread Starter mamameraki

    (@mamameraki)

    @sterndata I added them when I was writing my post. It looks like it’s a layout element in the block? I’m incredibly new to this so I apologize for my ignorance!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    When you’re adding a link, click the little gear next to the arrow and it opens up the dialog to reveal an “open in new window” checkbox.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to open a button in a new tab / window?’ is closed to new replies.