• Resolved oneoldvet

    (@oneoldvet)


    I would like to remove all of the default quicktag buttons in the HTML editor and use the Jayj quicktag plugin to substitute my own custom quicktag scheme.

    TIA

Viewing 1 replies (of 1 total)
  • Thread Starter oneoldvet

    (@oneoldvet)

    Well I took a chance on a snippet of code I found:

    function wpa_47010( $qtInit ) {
        $qtInit['buttons'] = 'strong,em,link,block,del,img,ul,ol,li,code,more,spell,close,fullscreen';
        return $qtInit;
    }
    add_filter('quicktags_settings', 'wpa_47010');

    I put this in my theme’ function.php file and stripped all of the HTML elements:

    function wpa_47010( $qtInit ) {
        <strong>$qtInit['buttons'] = ',';</strong>
        return $qtInit;
    }
    add_filter('quicktags_settings', 'wpa_47010');

    Now the only quicktags outside of those provided by the Jayj plugin that appears is “proofread”.

    I can live with that.

Viewing 1 replies (of 1 total)
  • The topic ‘Removing Quicktags from HTML editor’ is closed to new replies.