You may have code that relies on certain JetPack functions. If so, there’s a simple way to check if the module you need is enabled:
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) : endif;
You may have code that relies on certain JetPack functions. If so, there’s a simple way to check if the module you need is enabled:
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) : endif;
I added support for Jetpack Infinite Scroll on a theme of mine that uses Masonry recently.
Since I couldn’t find any good code snippets or recommendations for how the callback should work I wanted to share a couple methods I tried. If anyone has improvements or recommendations, please let me know.
All of these examples use the “post-load” javascript event that Jetpack triggers. You can read about that on the Jetpack Infinite Scroll documentation page. Continue reading