…note to self for EMA website (regarding photon)…

…to keep photon from trying to rule the NWS graphic on the EMA weather page…

…append functions.photon.php with the following:

/**
* Have Photon ignore NWS Louisville's File.png
*
* ...i think.
**/
function my_photon_exception( $skip, $src ) {
if ( $src == 'http://www.crh.noaa.gov/images/fxc/lmk/wx/File.png' ) {
return true;
}
return $skip;
}
add_filter( 'jetpack_photon_skip_image', 'my_photon_exception', 10, 3 );

2 thoughts on “…note to self for EMA website (regarding photon)…”

Comments are closed.