Hide Text when check box option is ticked in customizer?
-
How I hide the Head Text which is “Magna Aliquam” when “Hide Head Text” checkbox is checked and show when the checkbox is unchecked.
Below is my code, but I’m lost. Any help would be appreciated
wp.customize( ‘hide_head_text’, function( value ) {
value.bind( function( to ) {
if($(“hide_head_text”).is(‘:checked’))
$(“.welcome-text h2”).hide(); // checked
else
$(“.welcome-text h2”).show(); // unchecked
} )( jQuery );Here’s the image – https://i.stack.imgur.com/MN0HE.jpg
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Hide Text when check box option is ticked in customizer?’ is closed to new replies.