Minimal Toolbar Option for ACF WYSIWYG Fields
Adds a "Minimal" toolbar choice to ACF WYSIWYG fields with only bold, italic, link and lists, for short formatted text where full editing is too much.
Opens WPIDE on
Code
add_filter( 'acf/fields/wysiwyg/toolbars', function ( $toolbars ) {
$toolbars['Minimal'] = array(
1 => array( 'bold', 'italic', 'link', 'unlink', 'bullist', 'numlist', 'undo', 'redo' ),
);
return $toolbars;
} );
Notes
Pick "Minimal" in the field's Toolbar setting after activating.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.