-
-
Save BobaWebDev/4d112a8a483204c0625d4b0ec456e8c3 to your computer and use it in GitHub Desktop.
Enable custom header video on inner pages
This file contains 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
function myprefix_video_header_filter( $active ) { | |
if( is_home() || is_singular() ) { | |
return true; | |
} | |
return false; | |
} add_filter( 'is_header_video_active', 'myprefix_video_header_filter' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment