Last active
January 26, 2018 11:42
-
-
Save New0/4dde42474a387eca6bb71740ecc67d04 to your computer and use it in GitHub Desktop.
Add and remove a class to .caldera-grid .CF5a5fc16500e92 .checkbox Label on click event using jQury in the footer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: CF custom code | |
*/ | |
add_action( 'wp_footer', function() { | |
echo '<script> | |
jQuery( ".caldera-grid .CF5a5fc16500e92 .checkbox Label" ).click(function() { | |
$( this ).toggleClass( "checked" ); | |
}); | |
</script>'; | |
}, 10 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.caldera-grid .CF5a5fc16500e92 .checkbox Label.checked { | |
background-color: #a8bcc6; | |
border-color: #6e267b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment