Title: [Plugin: Theme-Check] is_admin() ?
Last modified: August 20, 2016

---

# [Plugin: Theme-Check] is_admin() ?

 *  [Scott Phillips](https://wordpress.org/support/users/aggiescott/)
 * (@aggiescott)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-theme-check-is_admin/)
 * I’m checking my new theme using the theme-check plugin. However the settings 
   page for the plugin is using the styling from my theme. I am checking for is_admin
   to decide whether to add my theme’s stylesheet.
 * This is the plugin’s page that has my theme’s style applied:
    `wp-admin/themes.
   php?page=themecheck`
 * In my theme’s function.php file I register my theme’s style sheet with:
 *     ```
       wp_register_style( 'style' , get_stylesheet_directory_uri() . '/style.css', array( ), '1.0' );
       if ( ! is_admin() ) {
       	wp_enqueue_style( 'style' );
       }
       ```
   
 * The question is why does the theme-check plugin page not respect is_admin() or
   is there a problem with how I am including my theme’s style sheet. I realize 
   I could add the stylesheet definition from header.php but that seems wrong.
 * [http://wordpress.org/extend/plugins/theme-check/](http://wordpress.org/extend/plugins/theme-check/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Simon Prosser](https://wordpress.org/support/users/pross/)
 * (@pross)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-theme-check-is_admin/#post-2242270)
 * Yea its a bug 😉 I will post a fix later today.
 *  Plugin Author [Simon Prosser](https://wordpress.org/support/users/pross/)
 * (@pross)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-theme-check-is_admin/#post-2242366)
 * Sorry, it isnt a bug with the plugin. The css for theme-check is only loaded 
   in the theme-check page.
    You must be loading your theme css wrong.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Theme-Check] is_admin() ?’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Simon Prosser](https://wordpress.org/support/users/pross/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-theme-check-is_admin/#post-2242366)
 * Status: not resolved