How to Add a Custom Script to Customize.php

It appears that ‘customize_controls_enqueue_scripts’ also works and may be the intended function.

function theme_customize_style() {
    wp_enqueue_style('customize-styles', get_template_directory_uri() . '/customize.css');
}
add_action( 'customize_controls_enqueue_scripts', 'theme_customize_style' );

Leave a Comment