Hi Guys! So far so good with GP!
I am trying to add video to the background of a page header while using a transparent image so I can simulate a parallax background. I just need to target the right div.
How can I add a function to insert code after the page header tag?
I have tried this:
add_action( ‘generate-inside-page-header-content’, ‘home_page_video’ );
function home_page_video() {
if ( is_front_page() ) {
?>
<video autoplay muted loop id=\’myVideo\’>
<source src=\’http://104.254.95.130/~catapultwp/wp-content/uploads/2018/05/rivertemp2-1.mp4\’ type=\’video/mp4\’>
Your browser does not support HTML5 video.
</video>
<?php
}
}