i think your script is loaded correctly, same function is used in twentytwelve ( but your script is inside the iframe) but i can be wrong (dont know excactly how your theme is construct, maybe it’s a path related issue with multiple include)
to see the change with no refresh you have to you use the ‘transport’ arguments in add_setting and get_setting in your customize_register function
$wp_customize->add_setting( 'my_setting', array( 'default' => 'setting_value', 'transport' => 'postMessage', ) );
This can be either ‘refresh’ (default) or ‘postMessage’. Only set this to ‘postMessage’ if you are writing custom Javascript to control the Theme Customizer’s live preview.
$wp_customize->get_setting( 'my_setting' )->transport="postMessage";
Related Posts:
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Trigger Customizer saving process with Javascript only
- Get password when user registers and save it sha1 into database
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Changing the entire control choices using wp.customize with JavaScript
- How to Change CSS Variable value in Theme Customizer Live Preview
- WordPress Customizer Control with React
- How to hook CSS file according to theme selection in the customizer section
- Pass variable to hook. Its possible?
- Add content after get_header
- Customizer Image-Picker Preview Not Working
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)
- How To extend WP_Customize_Control
- theme path in javascript file
- Get entered value of customiser field for live preview
- Proper, exhaustive documentation for wp.editor etc
- Create “File-less” Page Template in Functions.php
- Theme Customizer : how to create multiple-level panel
- Customizer Active Callback not working
- How to execute conditional script when on new customize.php (Theme Customize) screen
- Adding customizer styles with wp_add_inline_style
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- What can I hook into after_setup_theme?
- One button to change all settings in theme customizer?
- Is it possible to display the admin bar while in the Theme Customizer?
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- Change date number to another language/script?
- wp_enqueue_scripts not called on search page?
- Is using eval() ok in this scenario
- Custom php page in WordPress theme?
- How to set page template on front using starter content?
- Can’t access WordPress functions in file called via Ajax?
- How to change the customizer´s sidebar width?
- How i can get widgets areas working in customizer?
- How to correctly add JQuery in a WP theme?
- How to disable automatic colors in the Twenty Twenty theme?
- trying to use wp_handle_upload with ajax
- How can i add edit shortcut icon in wordpress customizer without using selective refresh?
- How to add theme support?
- Add new panel inside parent panel in WP Customize?
- Input ordering in wordpress theme customizer
- Should I use function_exists() and/or add_action() in theme development?
- Unable to pass variable on theme cusomizer add_settings()
- How to add field customizable by the theme editor to your theme?
- JavaScript Change focus to password field login page being reset
- Trigger popup in a php if/else statement
- Menu item added in wp_nav_menu_items filter is never highlighted
- How to Display a Plugin function (content) on frontpage using index.php
- Single-level menu option? Another way?
- Single page site with history.js
- How to change database values on theme update
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- Edit footer via customizer
- How do i make a custom section’s setting display the default value in Customizer?
- “Add A Widget” button in the Customizer
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- How to get javascript slider to work! [closed]
- How to modify default controls in WordPress theme customizer
- Redirect to another page using contact form 7? [closed]
- Dynamic menu links after header title
- Custom theme, contact form 7 & fast secure form doesn’t work
- Change the “Default Avatar” admin option via functions.php
- Remove Custuomize Sections
- Why in the static pages of my theme are showing these information?
- Can I make a Customizer dropdown-pages list include private pages?
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Modify available templates (in dropdown)
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- Theme logo metadata into template file
- Customizer: get_preview_url() inside customize_save_after hook
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- WP Customazation API doesn’t save the default Value
- How to make excerpt image be full size instead of thumbnail?
- Related Post Category Filter
- Let user to upload multiple time
- How to diagnose wp-env environment problem
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Default customizer colors aren’t displayed outside of the preview
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- Put CSS Content inside tag for WordPress
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- How to hook into wordpress upgrade procedure for a custom theme
- Alter theme pages on language switch
- Add multiple sections, settings and controls at once to the Customizer
- Missing hashtag with theme customizer header color
- Customizer_register theme options not saving
- Editable screenshot.png in a custom theme developed
- Using Customizer value in an external PHP file inside a theme
- get_theme_mod not pulling css colors into header using wp_head
- enqueue script if page is not equal to
- wp_deregister_script was called incorrectly
- Using wp_enqueue_script with social media buttons?
- Theme now uses require.js and enqueue script no longer works
- WP site makes mobile browser crash for high memory usage
- themeforce (happytables framework) implementation