Created
February 12, 2013 16:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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__ ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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