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 store functions in… functions.php?
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- 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?
- WP Customize refresh problem
- Input ordering in wordpress theme customizer
- Should I use function_exists() and/or add_action() in theme development?
- Should I use include or load_template for including shortcodes, plugins and so on?
- Unable to pass variable on theme cusomizer add_settings()
- Check if home.php and set home.php as page_on_front
- How to add field customizable by the theme editor to your theme?
- JavaScript Change focus to password field login page being reset
- Get a setting value conditionally in the Customizer api
- Highlight “Show all” item in wp_list_categories
- Trigger popup in a php if/else statement
- How to add new args data in $wp_customize->add_setting?
- jQuery not available to other scripts
- WP_Customize_Color_Control omitting # symbol
- Hide header texts (Title & Tagline) in custom-header.php
- get_option in header.php not returning value from customizer
- Menu item added in wp_nav_menu_items filter is never highlighted
- Internal error 500 accessing Theme > Customize
- How to Display a Plugin function (content) on frontpage using index.php
- How to make Isotope and WordPress work together?
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Injecting a custom sql query into a page/theme
- Single-level menu option? Another way?
- Using an if statement in the theme customizer page
- Single page site with history.js
- Should I use add_filter for functions in function.php of the theme?
- How to change database values on theme update
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- What is the “correct” way to add hooks or similar PHP behavior to a blocktheme?
- Show notice just below the search form on the themes page
- Theme-wide custom post template
- Default image size not working
- Edit footer via customizer
- How to add material design css in wordpress and woocommerce
- How do i make a custom section’s setting display the default value in Customizer?
- Theme Development: Starter Content after hook
- How to add styles set by user in the customizer
- Use second time navigation.js in underscores [closed]
- Error in custom php function doesn’t exist
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- JavaScript stops working on selectively refreshed sections one inside the other
- Return a numerical function value in Customizer controls
- Folder name for a pro version of a WordPress.org theme?
- Display theme layouts [closed]
- “Add A Widget” button in the Customizer
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Theme Javascript.php Overwritten Nightly [closed]
- Customizer: save setting/control content to post/page
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- Dynamically generated wordpress customizer options?
- Is accessing theme and using customizer GPL distribution?
- How to get javascript slider to work! [closed]
- How to disable wordpress from overload my stylesheet styles with customizer styles
- Skt full width basic slideshow problem
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Override customizer values on a per-menu base
- How to modify default controls in WordPress theme customizer
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- Replace function in a child theme
- Redirect to another page using contact form 7? [closed]
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Dynamic menu links after header title
- My jQuery is enqueued properly. So why isn’t it working?
- Custom theme, contact form 7 & fast secure form doesn’t work
- What are the hooks in WordPress theme development?
- Enqueued JavaScript is not working
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Change the “Default Avatar” admin option via functions.php
- Replace single_template filter with what for default posts?
- Control the srcset much more (not all sizes in it each time)
- Is there any way to register custom background images like header images?
- Remove Custuomize Sections
- How to transfer one domain to another domain without losing theme options (customizer)?
- Why in the static pages of my theme are showing these information?
- How to register and enqueue JavaScript files without breaking plugin dependencies?