Excluding a plugin from dependency minification not working
-
I am having an issue with a particular theme included script breaking when minified, this is supposed to handle switching the menu to the mobile version and right now it does not work and no items are displayed. I used the code you mentioned somewhere in another support thread to try and exclude by source (as I am not sure of the handle) and it does not work, can you see if I am doing something wrong here?
This is what I placed into my functions.php
function _exlude_themejs_from_depmin( $is_excluded, $handle, $src ) { if ( 'https://thesovereigninvestor.com/wp-content/themes/newsroom13-new/js/jquery.theme.js' === $src ) { // not sure what handle is used, can also check $src $is_excluded = true; } return $is_excluded; } add_filter( 'dependency_minification_excluded', '_exlude_themejs_from_depmin' , 10, 3);
Site is thesovereigninvestor.com.
Thank you.
https://www.ads-software.com/plugins/dependency-minification/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Excluding a plugin from dependency minification not working’ is closed to new replies.