Unable to use custom header video
-
Under theme customisation, I’m unable to set a video as the Header Media. This theme is being created from scratch so I’ve currently only got the following files: header.php, footer.php, functions.php, sidebar.php, index.php
I’ve tried setting video to true in the theme support section for wordpress. I’ve tried copying the implementation in the twentyseventeen theme. I’ve tried different combination of parameters in the custom-header theme support function.
functions.php:
add_theme_support( 'custom-header', array( 'video' => true, ) );
header.php:
<?php the_custom_header_markup(); ?>
Wordpress is currently giving me the following error:This theme doesn’t support video headers on this page. Navigate to the front page or another page that supports video headers.
- The topic ‘Unable to use custom header video’ is closed to new replies.