• Hi, how I can remove (just in front-end) the tabs “visual” and “test” above editor?
    thanks.
    Andrea.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Andrea,

    I tried this following code from stackexchange.com and it works fine for me.
    Copy and paste in your functions.php.

    function my_editor_settings($settings) {
    $settings['quicktags'] = false;
    return $settings;
    }
    add_filter('wp_editor_settings', 'my_editor_settings');

    Greetings
    Polyfly

    • This reply was modified 8 years, 3 months ago by polyfly.
    Thread Starter andreazak

    (@andreazak)

    Hi Polyfly, yes it work, I found a solutions also with “display:none” via css..
    my problem is to hide button only on front-page.. (or only for subrscribers/editor…)
    Thank you.
    Andrea.

    Plugin Author Andrew Ozz

    (@azaozz)

    You can use the function @polyfly suggested above and do some more checks before disabling the Text editor. Checking who the current user (logged in or just a visitor), what capabilities they have, etc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove “visual” and “text”’ is closed to new replies.