MainWP Community

DIsable the dismiss.js script from loading in Genesis Blocks

DIsable the dismiss.js script from loading in Genesis Blocks on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'wp_enqueue_scripts', 'genesis_dequeue_dismiss_js' );
 
function genesis_dequeue_dismiss_js() {
	wp_dequeue_script( 'genesis-blocks-dismiss-js' );
 
}
1 Like