Hi,
Please let me know how do I add video background in place of header image?
Hi,
Please let me know how do I add video background in place of header image?
infocubic
Hi,
This article should be helpful: https://www.gavick.com/blog/make-video-header-background
(it's for SteakHouse theme, but the idea is the same)
Please notice, that in the Simplicity theme header id is called:
#gk-head
instead of #gk-header
Hope it helps..
Cheers
Joshua
I have added the code and youtube link as per the steps on test site http://decisionquotient.org/, but only sound is coming no video nothing.
Can you help me to achieve this?
Can anyone respond to this query?
Hi,
Please add your iframe or video code after <header id="gk-head"
.. (Simplicity/layouts/header.php file), not into text widget. (it's described in the article)
Cheers
Joshua
I have added as per your suggestion but still a blank and video sound comes... Please have a check and let me know....
I am trying on the test site http://decisionquotient.org/
Hello Saguaros,
I would like to do the changes myself since this is a test site I put on. Can you suggest?
This works fine now, I need the following issues to be fixed. Please help....
infocubic
Hi,
Regarding your issues:
1. Please check the answers here: https://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work (instead of youtube iframe, you can also use own video from your server - video tag)
2. This issue is connected with youtube iframe.. I think it will be easier to use own video file. (and i'm not sure if it's legal to remove youtube logo, please check the discussion here)
3. Try to add this css:
#gk-head .box {
position: relative;
z-index: 3333333;
}
I have uploaded the video and added the code as suggested, it is not working please check.....
The code I have added is
{ <header id="gk-head">
<video autoplay loop poster="/wp-content/themes/Simplicity/images/header.jpg" id="bg-video">
<source src="/wp-content/themes/Simplicity/video/Pars.webm" type="video/webm">
<source src="wp-content/themes/Simplicity/video/Pars.mp4" type="video/mp4">
</video>
}
I have added this code to #bg-video , it is working on IE and Firefox browsers with sound and it is not working in chrome and safari browsers. Can you please let me know how to mute the sound? then it may work on chrome and safari.
The other thing is on mobile device video is not responsive. Image and video both displays....
infocubic Can you please let me know how to mute the sound?
Try change this :
<video autoplay loop poster="/wp-content/themes/Simplicity/images/header.jpg" id="bg-video">
to
<video autoplay loop muted poster="/wp-content/themes/Simplicity/images/header.jpg" id="bg-video">
The other thing is on mobile device video is not responsive.
Try add this media query css:
@media only screen and (max-width:768px) {.imageBg #gk-head {background-image: none !important;}
#bg-video{width:auto;}
}
Kindly ensure to clear your browser cache if changes dont reflect
How do I change the image showing before the videobackbround loads (Deskto, mobile and tablet)
? please help
infocubic
Hi,
You can add background images to your #gk-head tag.
I can see it's added, but blocked by your custom css:
#gk-head {
background: transparent!important;
}
@media only screen and (max-width: 768px)
.imageBg #gk-head {
background-image: none !important;
}
Try to remove this code and should be fine.
Cheers
Joshua