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

Tagged:

Beoordeel dit artikel

(58 out of 128 people found this article helpful)

Leave A Comment?