Support

Account

Home Forums General Issues Change WYSIWYG toolbars for specific fields only Reply To: Change WYSIWYG toolbars for specific fields only

  • Since this topic still has some attention I came back to share my solution. I misunderstood the way of making a more simple toolbar. The current solution suites my needs:

    
    if (class_exists('acf')) {
      add_filter('acf/fields/wysiwyg/toolbars', 'wysiwyg_toolbars');
    }
    
    function wysiwyg_toolbars($toolbars) {
      $toolbars['Very Very Simple'] = array();
      $toolbars['Very Very Simple'][1] = array('bold', 'italic', 'underline', 'strikethrough');
    
      $toolbars['Very Simple'] = array();
      $toolbars['Very Simple'][1] = array('bold', 'italic', 'underline', 'strikethrough', 'link');
    
      return $toolbars;
    }
    

    After that, you can assign the field type to your designated field, just like you normally would do.