wordpress-dashboard

How to change fonts in a WordPress dashboard

January 5, 2018
< 1
min read

Aquick techie post here for WordPress aficionados. Back in August 2016, WordPress made a major update with version 4.6. One change that I abhorred — given that I’m a writer who’s accustomed to crafting blog posts in a standard sans-serif font — was the reversion in the admin dashboard to an ugly serif system font.

So, for my five WordPress sites, I asked my developer, David Davis, to bring an Open Sans or Verdana look back to my dashboard. (Note that none of this is visible to the public, only to the author.)

Here’s what he came up with:

Ok here are the steps for this one.

Go to active theme’s functions.php file

Add this code:

function customAdmin() {
$url = get_settings(‘siteurl’);
$url = $url . ‘/wp-content/themes/anariel-child/wp-admin.css’;
echo ‘ ‘;
}
add_action(‘admin_head’, ‘customAdmin’);

Then you have to create wp-admin.css in the active theme’s folder.

Then add this CSS.

.wp-editor-area {
font-family: Verdana, Consolas, Monaco, monospace !important;
}
#wp_mce_fullscreen {
font-family: Verdana, Consolas, Monaco, monospace !important;
}

Now, this involves ftping in and then using an editing program like BBEdit to make the change. If that’s above your pay grade, there’s also a WordPress plug-in that does the trick, though I haven’t used it: Admin Custom Font.

I’ll be referring back to this post the next time I want to launch a new WordPress site.

Recent articles

Talks about indie publishing, media, tech & travel

Steve Rosenbaum’s new book on the precariousness of truth in the AI Age I use AI nearly every day. I use it to research, to synthesize, to brainstorm. And if

10 comps

Themes of AI, tech billionaires, space weapons, sex trafficking & more What’s in a comp? Most non-authors will scratch their chin at the question, but writers know that comps are

JD Lasica

With more people turning to A.I. models for search results, it’s interesting to note that the A.I. engines often do a better job than Wikipedia. That’s certainly the case when

Pin It on Pinterest

Share This