Site logo

Archived topic

Video on the home

1 reply · Started by Miguel Angel on December 12, 2016

Viewing posts 1–2 of 2

Hello Tom, I have put in GP Hooks (After Header)
This code:

<?php if ( is_front_page() ) {
<video id="bgVideoHome" class="bgVideoHome" autoplay loop >
<source src="/wp-content/uploads/2016/12/video-eu.webm.webm" type="video/webm" >
</video>
}
?>

The idea is to insert a video that only appears in the home, but I have the problem that nothing is visible, you can help me, please.

Thanks and regards,

It would need to be like this:

<?php if ( is_front_page() ) { ?>
    Your video in here
<?php } ?>
This archived topic is closed to new replies.