BACK TO DIRECTORY

Target Blank to Button Block

by Jb Audras

5.0
(3 ratings)

Add Target Blank to Gutenberg Button Block. Provisory fix to add target blank to button blocks.

The target blank feature is already addressed in Gutenberg project GitHub repository. This plugin aims to provide an alternative for those who want this feature now.

Please note that this plugin uses Javascript to add Target blank on Button Block as a fallback.

A screen reader text is also added for better accessibility and a rel="external noreferrer noopener" attribute is added for better security.

It provides two options:

  • Automatically add target blank to ALL Button blocks (default)
  • Only add target blank to links that have the blank CSS class

(see screenshots below)

Screenshots

Plugin settings

Plugin settings

Plugin settings page Location: Appearance > Button block target

Plugin settings page Location: Appearance > Button block target

How to use a CSS class to add target blank only to specific links

How to use a CSS class to add target blank only to specific links

Plugin Details

Active Installs
100
Total Downloads
4,154
Version
0.1
Requires WP
5.0
Requires PHP
5.6
Tested Up To
7.1
Added
2019-03-16
Last Updated
2026-08-28 5:25am GMT

Ratings

5
3
4
0
3
0
2
0
1
0