Skip to content

Instantly share code, notes, and snippets.

@BobaWebDev
Created July 3, 2018 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BobaWebDev/4d112a8a483204c0625d4b0ec456e8c3 to your computer and use it in GitHub Desktop.
Save BobaWebDev/4d112a8a483204c0625d4b0ec456e8c3 to your computer and use it in GitHub Desktop.
Enable custom header video on inner pages
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