Target Blank to Button Block

plugin banner

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

Author:Jb Audras (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.4.2
Plugin version:0.1
Added to WordPress repository:16-03-2019
Last updated:14-01-2024
Rating, %:100
Rated by:3
Plugin URI:https://jeanbaptisteaudras.com/2019/03/ajout-...
Total downloads:2 824
Active installs:100+
plugin download
Click to start download

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
FAQ
ChangeLog