Hi Igor!
Can you post the code you were using?
Thanks!
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' );
?>
I think this might be very helpful https://codex.ww.wp.xz.cn/Theme_Customization_API . Let me know if that is helpful at all.
I have read several times. You can solve the problem? Or stuffing rating?
Which part of the live previewer are you trying to use?
Problem solved.
I used other jQuery version on front-end. In customization mode, jQuery embedded conflict with my jQuery. I fixed it.
bdanzer29, thx.