Skip to content

Instantly share code, notes, and snippets.

@rilwis
Created February 12, 2013 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rilwis/4771086 to your computer and use it in GitHub Desktop.
Save rilwis/4771086 to your computer and use it in GitHub Desktop.
Style Add New / Edit Post page in WordPress using admin body class. @see http://www.deluxeblogtips.com/?p=1281
<?php
/*
Plugin Name: Admin Body Class Demo
Plugin URI: http://www.deluxeblogtips.com/?p=1281
Description: Style Add New / Edit Post page in WordPress using admin body class
Version: 0.1
Author: Rilwis
Author URI: http://www.deluxeblogtips.com
License: GPL2+
*/
add_action( 'admin_enqueue_scripts', 'rw_add_admin_style' );
/**
* Enqueue style for admin pages
*
* @return void
*/
function rw_add_admin_style
{
wp_enqueue_style( 'rw-admin-style', plugins_url( 'admin-style.css', __FILE__ ) );
}
.post-new-php #titlediv #title,
.post-php #titlediv #title {
border: 2px solid #f33;
background: #ff9;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment