WpCode.net

Daily Wordpress Code Snippet

How to change the 3.2 Html editor font

| 0 comments

Pin It

This cool snipped added in your function.php file will edit the font in your HTML editor in the post and page panel. You can edit the font simply customizing the “Font-family” parameter in the code. To get the differents font family you can use “Dreamweaver” Continue reading

add_action( 'admin_head-post.php', 'devpress_fix_html_editor_font' );
add_action( 'admin_head-post-new.php', 'devpress_fix_html_editor_font' );
function devpress_fix_html_editor_font() { ?>
<style type="text/css">#editorcontainer #content, #wp_mce_fullscreen { font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; }</style>
<?php }

Leave a Reply

Required fields are marked *.

*