reduxframework / customizer-integration

0 stars 0 forks source link

Customizer doesn't make any change #11

Open kajdzo opened 8 years ago

kajdzo commented 8 years ago

Hello guys,

WP Version 4.5.3, ReduxFramework version 3.6.0.5 dev_mode => true, Redux is embedded

I'm building new theme and I have enabled composer in config file but can't make it work. It shows all fields from theme options but can't make any changes with customizer, it doesn't detect any change I make within options in customizer.

Any suggestions ? Thanks in advance.

kmob2 commented 8 years ago

It works for me.

What does your javascript look like for the customizer?

Here is an example: theme-customizer.js

    wp.customize( 'your_theme_name[site-inner-padding-top]', function( value ) {
        value.bind( function( newval ) {
                $('.site-inner').css('padding-top', newval + 'px' );
        } );
    } );

Where as "your_theme_name" is the $opt_name and "site-inner-padding-top" is the id of your field.