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
function class_carousel() { | |
// If there is no target element, return | |
var is_carousel = jQuery('.class-carousel').length; | |
if(!is_carousel) return; | |
// Loading slick.js default css from cdnjs | |
var link = document.createElement( "link" ); | |
link.href = "https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css"; | |
link.type = "text/css"; |
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
/** | |
* Disables REFILL function in WPCF7 if Recaptcha is in use | |
*/ | |
add_action('wp_enqueue_scripts', 'wpcf7_recaptcha_no_refill', 15, 0); | |
function wpcf7_recaptcha_no_refill() { | |
$service = WPCF7_RECAPTCHA::get_instance(); | |
if ( ! $service->is_active() ) { | |
return; | |
} |