Created
May 2, 2018 15:00
-
-
Save florianbrinkmann/c5cb1152da505240bb4e3e6052f6135b to your computer and use it in GitHub Desktop.
Remove lightbox script from Hannover WordPress theme.
This file contains hidden or 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 | |
add_action( 'wp_enqueue_scripts', 'hannover_child_remove_lightbox', 100 ); | |
/** | |
* Remove the Hannover lightbox script. | |
*/ | |
function hannover_child_remove_lightbox() { | |
wp_dequeue_script( 'hannover-lightbox' ); | |
wp_deregister_script( 'hannover-lightbox' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment