Created
May 16, 2023 21:03
-
-
Save abdulawal39/b6b5befa79692acc4d0a3b7f654ac754 to your computer and use it in GitHub Desktop.
Add this code in your active theme's functions.php file to disable default jquery on pdfviewer pages.
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
add_action( 'wp_enqueue_scripts', 'themencode_control_jquery' ); | |
function themencode_control_jquery(){ | |
if( is_singular() && get_post_type()=='pdfviewer' ){ | |
wp_deregister_script('jquery'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment