Created
July 26, 2017 11:19
-
-
Save lvl99/f74b8c00ff6a93a922e26134c4575939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Change the loaded partial for the carousel-image-args to support Fancybox v3 | |
*/ | |
public function mytheme_jetpack_tiled_gallery_partial ( $file, $name, $context ) | |
{ | |
// Point to the local partial for the carousel-image-args | |
if ( $name === 'carousel-image-args' ) | |
{ | |
return get_stylesheet_directory() . "/partials/tiled-gallery-carousel-image-args.php"; | |
} | |
return $file; | |
} | |
add_filter( 'jetpack_tiled_gallery_partial', 'mytheme_jetpack_tiled_gallery_partial', 99999, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment