Is there a way to swap out the image URL and replace it with a video file for use as a background video instead of image?
Here's the code for my background image i want to convert to a background video :
echo '<style type="text/css" media="screen">
body.front-page {
background-image: url(' . esc_html( $image ) . ');
</style>';
I need to apply the video to this body.front-page class and not sure what the best method is however i would prefer using PHP.
My Answer:
Rate this post
5 of 5 based on 8592 votesComments