Skip to content

Dumb Details

Here’s a thing—or two—that just had to be fixed. (I know, I’m terrible.)

A WP Admin sidebar much in need of some CSS tweaks
A WP Admin sidebar much in need of some CSS tweaks
A more usable, more consistent WP Admin sidebar
So much better!

Oh, and the actual fix:

<?php
/**
 * WP Admin CSS tweaks.
 */
add_action( 'admin_head', function() {
  ?>
  <style rel="stylesheet" type="text/css" media="all">
  #post_name {
    /* Widens the Edit Post screen's "Slug" field. */
    width: calc(100% - 2px);
  }

  #post-type-display {
    /* Post Type Switcher, for consistency. */
    font-weight: 600;
  }
  </style>
<?php
}, 99 );

Replies

  1. Digging the Digital on

    … liked this!

    Via diggingthedigital.com, in reply to Dumb Details.