Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
How to execute conditional script when on new customize.php (Theme Customize) screen

Is there a Conditional Tag, or any other method, that we can use to check if we are customizing the theme?

I want to include some extra stylesheet while customizing the theme.

so I'd like to have sth like:

if ( theme-customizer-is-active ) {
    // load some extra styles
}
share|improve this question

marked as duplicate by anu, toscho Jul 17 '12 at 23:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Don't understand this question at all. How are you defining "customizing the theme" –  anu Jul 17 '12 at 8:33
    
I mean the new feature by wordpress 3.4. "theme customizer". –  xsonic Jul 17 '12 at 16:09
    
But I already resolved it by this Question: link –  xsonic Jul 17 '12 at 16:11

1 Answer 1

up vote 3 down vote accepted

As in this question: How to execute conditional script when on new customize.php (Theme Customize) screen

global $wp_customize;
if ( isset( $wp_customize ) ) {
    // do stuff
}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.