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' );
Related Posts:
- When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
- Check if a script/style was enqueued/registered
- How to properly dequeue scripts and styles in child theme?
- Cannot deregister a script using wp_deregister_script
- How to dequeue / deregister any theme styles and scripts
- Hyphens vs. periods in the script slug in wp_register_script?
- enqueue and localize script in footer
- wp_enqueue_script vs. wp_register_script
- Child Theme – what is the scope of overwriting files?
- Best way to enqueue extremely popular scripts like bootstrap and font awesome
- Best spot for wp_register_script() and wp_register_style()
- wp_enqueue_script with dependencies doesn’t work
- Register script/style: Is it possible to customize the version query string via plugin?
- Help with enqueing scripts in footer after init action
- Modernizr check first, then move on to wp_register_script()/wp_enqueue_script
- How to cancel `wp_print_scripts`?
- Including style.css in Child Theme
- getting a js file for one page
- Can’t see why my scripts aren’t loading when I register and enqueue them
- Including files in Child Themes
- WordPress script file version numbers changing in live environment
- Change script type and src of plugins in theme
- How to enqueue JavaScript file that depends on CSS stylesheet
- Enqueue customizer scripts that are bundled by webpack?
- Adding multiple wp_register_scripts for templates in WordPres?
- Localizing script to pass a value to a javascript function
- Enqueuing script is adding extra text for google maps [closed]
- Deregister multiple scripts using a function?
- wp_enqueue_scripts does not work
- Modular CSS and JS in Child Themes
- If a Script has been enqueued but not registered can I still removed it?
- include jquery plugin file not working
- how to enqueu customiser/customizer scripts?
- How to use wp_register_script / wp_enqueue_script for multiple queries
- How to register script with null value for version?
- Using wp_enqueue_script on scripts that contain PHP
- Stop a plugins js and css from loading on all pages and show up only where it is called
- Enqueue registered dependencies only when necessary
- How to get, in WP page’s script, a wp enqueued script (in Functions.php)?
- wp_enqueue doesn’t load dependencies
- Why do WordPress adds the id=”handle-{js|css}” attribute to scripts and stylesheet?
- Dequeue/deregister scripts for everybody but the administrator
- wp enqueue style on specific page templates
- Register a script to be enqueued both in admin and front end
- Correct Method to run scripts with dependencies without enqueue?
- Load js/css files only on specific admin UI pages
- Get the list of enqueued/registered scripts for a specific post?
- Add script to footer – on post editor
- Which action to hook wp_enqueue_script to? wp_head or wp_enqueue_scripts? [duplicate]
- What determines the order of enqueued styles?
- Wp_head and wp_footer vs wp_enqueue_script javascript files?
- It would be a right way to enqueue the script using foreach loop?
- Is this a bad implementation of wp_enqueue_script for conditional usage?
- Don’t load scripts if on mobile/tablet
- Remove a script from a template file using wp_dequeue_script
- Pass $this to function nested in another public function of the same class
- How to dequeue / deregister parent theme style
- Enqueue script on specific WooCommerce template
- Select2 in WordPress
- How to control the order of the combination of enqueued styles and scripts – site speed issue
- scripts not enqueueing
- How can I make sure my JS script gets executed first, among other scripts?
- wp_head() – list hooked actions with priorities?
- wp_enqueue_script called incorrectly
- How to remove scripts/style added to customize_controls_enqueue_scripts hook by current active theme
- How to change script order?
- Enqueue script multiple times?
- Exclude external uri for css and js version
- How to add parameter to wp_enqueue_script?
- How to enqueue javascript for WP Customize options sidebar?
- get_template_directory_uri() gives me wrong path when I try to use wp_enqueue_style
- wp_enqueue_script() doesn’t work with AJAX
- Jquery function working in Dev Console but not otherwise [duplicate]
- Adding JS in header when using wp_enqueue_script in a shortcode
- Overwrite wp_enqueue_script under certain condition
- Scripts not loading through function Method in WordPress Theme
- Enqueueing Scripts and Styles
- WordPress error when replacing local jQuery by externally-hosted
- Enqueue scripts based on options
- How to use wp_enqueue_script, style when required
- Enqueue Script in WordPress
- Plugin add_action and add_menu_page
- Add crossorigin to SCRIPT tag
- Enqueue script: link not working in page source
- How to do chunked JS files in WordPress?
- Stylesheets and scripts not loading
- Scripts and stylesheets failing to load in Chrome IOS (and only Chrome IOS)
- How do I keep children of certain parent menus expanded by default on a sidebar?
- i can’t handle any style or Js file on my theme . what is the problem of this file?
- ajax jquery live search box not working in wordpress plugin
- wp_enqueue_script was called incorrectly… i want to work with debug on
- Loop through arguments of a function
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- JS plugin script loading but not working
- JavaScript file successfully registered but does not render correctly
- Remove snippets of JS from core
- Using wp_enqueue_script in a wordpress plugin
- How to enqueue js script after another specific js script?
- comment-reply.js is not loading
- How can I specifically enqueue scripts for edit orders pages only