WordPress Enable Extra Font-Size Options

WordPress Enable Extra Font-Size Options

Add this to your functions.php in the Child theme.

<?php
// Enable font size & font family selects in the editor
if ( ! function_exists( 'wpex_mce_buttons' ) ) {
    function wpex_mce_buttons( $buttons ) {
        array_unshift( $buttons, 'fontselect' ); // Add Font Select
        array_unshift( $buttons, 'fontsizeselect' ); // Add Font Size Select
        return $buttons;
    }
}
add_filter( 'mce_buttons_2', 'wpex_mce_buttons' );

Only include the <?php if you need to create the functions.php if its not there allready

Was this article helpful?

Related Articles