If you want to bind the callback from the customizer panel you can use:
wp.customizer.bind( 'preview-ready', callbackFn );
otherwise if you need to bind it from preview itself you can use:
wp.customize.previewer.bind('ready', callbackFn);
Related Posts:
- Link to specific Customizer section
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- How to refresh WordPress Customizer panel upon entering a value
- Display custom_background outside wp_head()
- How do I change Twenty Nineteen’s primary color without using the color slider in the theme customizer?
- Register theme customizer settings when theme activates [duplicate]
- How to change the themes “Live Preview” url within the Appearance->Themes page?
- Theme Customizer – How to create a sub panel
- How to conditionally display widgetized areas in theme customizer?
- Create more than one section in Theme Customizer
- How do you approach block structured content?
- Own Theme Customizer displays error message when saving, saving still works
- Child Theme not overriding a template section on live site – but is on local site
- How do I remove ‘Active Theme’ section from Customizer?
- Color Options from Theme Customizer API not returning via get_theme_mod()
- wordpress-theme 2017: featured image behaviour: where to set the height of the featured image?
- WordPress customizer extremely slow, cant work in it
- Dynamic image for Jumbotron on WordPress Custom Theme
- Issues with dynamic widget in theme customizer
- Theme customizer hiding sections
- WP Customize API Checkbox change value
- WordPress Customazation API section in section
- Page structure using The Customizer Api
- WordPress Theme redirects to the Index page – Theme customizer problem
- What’s the best way to go from a design to a customized WordPress site?
- Adding admin-ajax.php to the frontend. Good or bad idea?
- what the best way to include images from the template’s images folder?
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Moving WordPress.com theme and widget settings to self-hosted site?
- Getting headers property from WP_Theme object
- How to set a unique WordPress theme for different pages?
- WP admin bar only on some pages
- How to delete default themes
- Which theme template is used renders next page
- Problem : deletion failed, the theme requested does not exist
- Download all WordPress.com available themes, somewhere?
- How to stop a 500 error on the WordPress theme folder
- Change Theme from Plugin based on query_vars
- How to mark an option as selected
- Archiving annual festival site
- How to know the theme name of a wordpress blog?
- How do I move the page title (H1) to header.php (outside of the loop) in a WordPress theme?
- Theme Development Admin Area [closed]
- Investigating complex themes still slow even with WP caching
- Is that worth it to find a designer for creating a WordPress theme for selling on ThemeForest? [closed]
- Howto keep header image when changing theme
- setting a different theme for specific category in wordpress
- Mobile issue – website isn’t properly detecting screen size [closed]
- Add Custom Background Properties to Customizer
- Online theme customizer missing details
- Redux callback action
- Problem of running development copy of WordPress on WebMatrix?
- Switching content between summer and winter
- translation does not work for ‘Home’
- Is that a malicious code?
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How do I manually revert back to my old theme?
- Modifying the markup in the Tag Cloud widget?
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Customizer: get_preview_url() inside customize_save_after hook
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- linking to an svg through comments_popup_link
- How to use custom page templates in a theme that hides page template option?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- How to include stylesheet in custom admin using parent_slug
- How would I got about calling a php file every time someone publishes a new post?
- Custom theme – pages in menu
- remove preloader in WordPress theme [closed]
- Let user to upload multiple time
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme translates the_author_posts_link. How can I remove their translation?
- Theme CSS missing completely
- How to implement this layout?
- Missing privacy policy checkbox on login page (using Enfold theme)
- How exactly does WordPress load themes from api.wordpress.org?
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Let custom text widget use the same font as the theme
- SSL errors when I activate my custom theme
- How to show taxonomy in WordPress shortcode
- “Template is missing” install error on non-child theme
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- Lightword Theme – only one menu item
- how to use Easy Docs theme to write a book?
- How to create an Single-Portfolio page?
- How is WordPress child related to Buddypress child theme
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Table of Contents in Left Navbar [closed]