in header
-
I’m trying to put a video in my header and i can’t seem to get it to work. I’m trying to make the background image the video, with a static logo over. The header currently looks like this…
<div id=”header”>
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?>
<div id=”custom-header” <?php if ( has_nav_menu( ‘fixed-menu’ ) ) { ?>class=”fixed-menu”<?php } ?> style=”background-image: url(<?php header_image(); ?>);” data-type=”background” data-speed=”10″>
<?php get_template_part( ‘content/logo’, ‘title’ ); ?>
<img class=”hide-img” src=”<?php header_image(); ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”<?php echo esc_attr( get_bloginfo() ); ?>” />
</div>
<?php } else { ?>
<div id=”custom-header” class=”non-active<?php if ( has_nav_menu( ‘fixed-menu’ ) ) { ?> fixed-menu<?php } ?>”>
<?php get_template_part( ‘content/logo’, ‘title’ ); ?>
</div>
<?php } ?>
Any idea how I should go about this?
- The topic ‘in header’ is closed to new replies.