Customizer Preview js for psuedo?
-
I was working on a new theme and discovered something about the customizer preview js options for colours. I can do colours and they give instant results in the preview window when using colour selectors, but I noticed that anything with a psuedo doesn’t work.
Example:
wp.customize( 'line_colour', function( value ) { value.bind( function( newval ) { $('.entry-title:after').css('background-color', newval ); } ); } );Works fine if I remove :after but does a full background of the entry-title. But I have a border line below the title, hence the :after
However, this doesn’t seem to work in the preview js; is there a way to make it work?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Customizer Preview js for psuedo?’ is closed to new replies.