Bypass Jetpack image processing for one image only
-
Hi there
I have one image on a page which is being weird, possibly something to do with .png transparency issues. It works fine on local, not on the live / jetpack-served site.
I am following this useful instruction which seems to be a function to remove image processing per-page: https://jetpack.com/2020/05/14/jetpack-hooks-control-jetpack-cdn/
I added this function to functions.php
//disable Jetpack in certain areas
function jetpackblog_studios() {
if ( is_page( ‘studios’ ) ) {
add_filter( ‘jetpack_photon_skip_image’, ‘__return_true’);
}
}add_action( ‘wp’, ‘jetpackblog_studios’ );
But it doesnt seem to work? Any ideas what I am doing wrong? Does this hook still work?
And —?how woulf I target just one image?
thanks for looking
The page I need help with: [log in to see the link]
- The topic ‘Bypass Jetpack image processing for one image only’ is closed to new replies.