Title: wp.customize is not a function
Last modified: September 1, 2016

---

# wp.customize is not a function

 *  [igor.antoshkin](https://wordpress.org/support/users/igorantoshkin/)
 * (@igorantoshkin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/)
 * I try doing theme customization.
    I created “Setting” and assigned it to “Control”,
   and created custom.js with wp.customize(…); BUT(!) browser console raise error:
   TypeError: wp.customize is not a function.
 * In browser console, I type: typeof wp.customize and result: “function”
 * Summary: live-preview not working.
 * What the problem?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [bdanzer29](https://wordpress.org/support/users/bdanzer29/)
 * (@bdanzer29)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699761)
 * Hi Igor!
 * Can you post the code you were using?
 * Thanks!
 *  Thread Starter [igor.antoshkin](https://wordpress.org/support/users/igorantoshkin/)
 * (@igorantoshkin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699769)
 * hi.
    **custom.js:**
 *     ```
       ( function( $ ) {
           // Site feature
           wp.customize( 'title_feature', function( value ) {
               value.bind( function( to ) {
                   $( '.awesome-slogan h3' ).html( to );
               } );
           } );
   
       } )( jQuery );
       ```
   
 * ————–
    **customizer.php:**
 *     ```
       <?php
   
       function customize_register( $wp_customize ) {
   
           $wp_customize->add_setting( 'title_feature', array(
               'default'           => 'Default text',
               'transport'         => 'postMessage',
           ) );
   
           $wp_customize->add_control( 'title_feature', array(
               'label'    => __( 'Main feature', 'big' ),
               'section'  => 'title_tagline',
               'type'     => 'text',
               'priority' => 15,
           ) );
   
       }
       add_action( 'customize_register', 'customize_register', 11 );
   
       function customize_preview_js() {
           wp_enqueue_script( 'custom', get_template_directory_uri() . '/assets/js/custom.js', array(), '20160824', true );
       }
       add_action( 'customize_preview_init', 'customize_preview_js' );
   
       ?>
       ```
   
 *  [bdanzer29](https://wordpress.org/support/users/bdanzer29/)
 * (@bdanzer29)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699775)
 * I think this might be very helpful [https://codex.wordpress.org/Theme_Customization_API](https://codex.wordpress.org/Theme_Customization_API).
   Let me know if that is helpful at all.
 *  Thread Starter [igor.antoshkin](https://wordpress.org/support/users/igorantoshkin/)
 * (@igorantoshkin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699787)
 * I have read several times. You can solve the problem? Or stuffing rating?
 *  [bdanzer29](https://wordpress.org/support/users/bdanzer29/)
 * (@bdanzer29)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699789)
 * Which part of the live previewer are you trying to use?
 *  Thread Starter [igor.antoshkin](https://wordpress.org/support/users/igorantoshkin/)
 * (@igorantoshkin)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699857)
 * Problem solved.
    I used other jQuery version on front-end. In customization mode,
   jQuery embedded conflict with my jQuery. I fixed it.
 * bdanzer29, thx.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp.customize is not a function’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [igor.antoshkin](https://wordpress.org/support/users/igorantoshkin/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/wpcustomize-is-not-a-function/#post-7699857)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
