Knowledge Base
How to Disable the Color Box Script
If you would like to disable the colorbox script you can use the following snippet by adding it to your theme’s functions.php:
/* * Coupon Creator Pro - Disable Colorbox Script and Style * Version 2.1.2 */ add_action( 'cctor_shortcode_end', 'cctor_pro_colorbox_remove_script', 11 ); function cctor_pro_colorbox_remove_script() { if ( ! is_admin() ) { wp_dequeue_style('cctor_colorbox_css'); wp_dequeue_script('cctor_colorbox_js'); } }
It is not recommended you disable the script as there is an additional function added to it to resize the coupon once it pops up.