• I’ve used div.wp-editor-tabs {display:none} to hide the 2 tabs as I find a lot of users get confused when they see the text in code format. Now that I’ve hidden the tabs how can I ensure that the VISUAL editor is always displayed.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    You will need to make a small WP plugin. There is a filter in WP to set the default editor. Alternatively can set the “user setting” for preferred editor from JS. Something like

    if ( window.setUserSetting ) { window.setUserSetting( 'editor', 'tinymce' ) }

    This has to run before the Edit Post page has finished loading, perhaps in the header.

    (Of course this will only work in the Classic Editor.)

    • This reply was modified 7 years, 1 month ago by Andrew Ozz.
Viewing 1 replies (of 1 total)

The topic ‘Hide the Visual/Text Menu Tabs’ is closed to new replies.