Hi Udi!
Try this:
function my_photon_exception( $val, $src, $tag ) {
if ( $src == 'YOUR_IMAGE_URL' ) {
return true;
}
return $val;
}
add_filter( 'jetpack_photon_skip_image', 'my_photon_exception', 10, 3 );
Let me know if that works for you!
Thread Starter
007me
(@007me)
Hi Richard,
I’ve tried it in my custom CSS, with the original URL from this weather site and also with the URL that comes from WP.com.
didn’t work.
Did I miss anything?
See the image I’m talking about here:
http://tinyurl.com/p6v28pf
The original image comes from here:
http://wxmaps.org/pix/prec9.html
Udi
Hi Udi, that snippet needs to go in your theme’s functions.php or even better, in a custom plugin for your site:
http://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/
Thread Starter
007me
(@007me)
Hi Richard,
Great!!!!!
That worked!
Thanks a lot!
I’ll spread the rumor.
Udi
Awesome, glad to hear that it worked, udi, and glad you’re learning more about WordPress!
Thread Starter
007me
(@007me)
Always glad to learn new things… 🙂