Hello,
It works! Except that the first return must be true and the second false.
Thank you!
LATER EDIT BELOW
This code totally works:
add_filter('autoptimize_js_include_inline', function( $state ) {
if ( is_page( 'YOUR_PAGE_SLUG_HERE' ) ) {
return false;
}
return true;
});
-
This reply was modified 3 years, 4 months ago by rexviber.
Yea, if there were only 10 lines… 😒</img>
https://ibb.co/8KdF3d2
I appreciate your effort! Unfortunately, the code snippet isn’t doing anything. That Crelly Slider HTML is still the same.
Thank you for your answer! My experience with PHP/WP filters is like search, copy and paste where it should be, so I’m not very experienced in writing/debugging codes.