Last active
February 4, 2022 06:34
-
-
Save wpexplorer/49f7c63a2ca3bfe7224c2db760bd37d2 to your computer and use it in GitHub Desktop.
Customize lightbox video output | Total WordPress Theme
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
add_filter( 'wpex_lightbox_settings', function( $settings ) { | |
$settings['video']['tpl'] = '<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}" loop> | |
<source src="{{src}}" type="{{format}}"> | |
Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player! | |
</video>'; | |
return $settings; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment