Skip to content

Instantly share code, notes, and snippets.

@itsananderson
Last active December 16, 2015 03:19
Show Gist options
  • Save itsananderson/5369180 to your computer and use it in GitHub Desktop.
Save itsananderson/5369180 to your computer and use it in GitHub Desktop.
Change 'gravity-forms' to whatever is shown in the URL for the Gravity Forms page. Example "options-general.php?page=gravity-forms"
<?php
function hook_my_css() {
$screen = get_current_screen();
if ('gravity-forms' == $screen->id ) {
wp_enqueue_style( 'my-css', plugins_url( '/my.css', __FILE__ ) );
}
}
add_action( 'admin_print_scripts', 'hook_my_css' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment