- This topic has 14 replies, 3 voices, and was last updated 4 years, 2 months ago by
Leo.
-
AuthorPosts
-
September 1, 2019 at 11:47 am #998635
Jana
• I’ve read the instructions and this is what my html looks like:
<video loop muted autoplay poster="HOME-bull-elephant-karner-blue-capital-b-2056x1161" class="background-video"> <source src="https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/09/KBC_Butterflies.mp4" type="video/mp4"> </video> <div class="background-video-content"> Your Element content in here. </div>
• And I’ve added this to Additional CSS for site:
.background-video {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0.5;
}.page-hero {
position: relative;
overflow: hidden;
}.background-video-content {
position: relative;
z-index: 1;
}video[poster] {
object-fit: cover;
width: 100%;
height: 100%;
}And this is what it looks like – there’s no hero at all-image or video: https://centerforahumaneeconomy.org/karnerbluecapital/staging/karner-blue-capital-partial/
This is what it should look like – I’ve done this with video in Elementor – but think using your Elements would be better for speed/integration – do you agree with that?
https://centerforahumaneeconomy.org/karnerbluecapital/staging/Thanks, Jana
September 1, 2019 at 5:10 pm #998733Tom
Lead DeveloperLead DeveloperHi Jana,
Can you try adding some top and bottom padding to the Hero? It currently doesn’t have any height, so only a tiny bit is displaying.
Let me know 🙂
September 2, 2019 at 10:38 am #999315Jana
Thank you so much – it now works perfectly – I’m indebted to your theme and knowledge! I know using the element would be so much more seamless than adding a video to the page!
I am now hoping to imprint an logo on top of the video with this coding – I’ve experimented but haven’t gotten it to work.
<img src=”https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/08/white-logo-trans-sm-copy.png
“width=”325″ height=”165” alt=>Thanks! Jana
September 2, 2019 at 11:30 am #999350Leo
StaffCustomer SupportLooks like some HTML errors. Can you try this instead?
<img src="https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/08/white-logo-trans-sm-copy.png" class="avatar avatar-80 photo" height="325" width="165" alt="">
September 2, 2019 at 11:52 am #999369Jana
Thanks I’ll try this but first I’m having a problem when I set the page with the hero-video element as Homepage in the Homepage Settings of Customize, the place where the video should be is blank.
Also, how can I move the image in the coding about higher on the video hero page (right below the nav bar)?
Thanks, Jana
September 2, 2019 at 1:41 pm #999442Leo
StaffCustomer SupportI’m having a problem when I set the page with the hero-video element as Homepage in the Homepage Settings of Customize, the place where the video should be is blank.
Not quite sure if I understand. Can you explain a bit more?
Also, how can I move the image in the coding about higher on the video hero page (right below the nav bar)?
Where can I see this issue?
September 2, 2019 at 1:41 pm #999443Leo
StaffCustomer SupportI’m having a problem when I set the page with the hero-video element as Homepage in the Homepage Settings of Customize, the place where the video should be is blank.
Not quite sure if I understand. Can you explain a bit more?
Also, how can I move the image in the coding about higher on the video hero page (right below the nav bar)?
Where can I see this issue?
September 2, 2019 at 2:01 pm #999464Jana
The video in elements looks fine here:
https://centerforahumaneeconomy.org/karnerbluecapital/staging/karner-blue-capital-1/UNTIL I set the above page to be the homepage in Appearance > Customize > Homepage Settings > Homepage – then the video and image disappears.
September 2, 2019 at 2:14 pm #999472Leo
StaffCustomer SupportDid you change the display rule of that header element?
September 2, 2019 at 3:14 pm #999500Jana
Hwre’s the page which looks fine UNTIL I try to set it to be the site homepage – then it just drops off the video entirely:
https://centerforahumaneeconomy.org/karnerbluecapital/staging/karner-blue-capital-3/I just checked it on a private browser window and the video didn’t show up there either.
My Display Location rules are set to this page and the exclusion rules are set to only difference pages. No entire site, etc.
Just to recap – HTML in element:
<video loop muted autoplay poster=”https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/09/bull_elephant_karner_blue_capital_2056x1161_dk-1.jpg” class=”background-video”>
<source src=”https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/09/KBC_butterflies.mp4″>
<source src=”https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/09/KBC_butterflies_.webm” type=”video/webm”>
<source src=”https://centerforahumaneeconomy.org/karnerbluecapital/staging/wp-content/uploads/2019/09/KBC_butterflies_.ogv” type=”video/ogv”>
</video>Additional CSS:
.background-video {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 1;
}.page-hero {
position: relative;
overflow: hidden;
}.background-video-content {
position: relative;
z-index: 1;
}video[poster] {
object-fit: cover;
width: 100%;
height: 100%;
}September 2, 2019 at 3:41 pm #999510Leo
StaffCustomer SupportCan you try changing the display rule to Front Page instead of that specific page?
September 2, 2019 at 3:47 pm #999513Jana
Ok – officially an idiot here – works perfectly! Works a million times better than embedding a video in the page!
Now all I need is a way move up the “Your Element content in here.” to be under the nav bar and increase size of the typeface.
Thanks so much for you help!
September 2, 2019 at 3:58 pm #999516Leo
StaffCustomer SupportYou can modify the top and bottom padding as suggested here:
https://docs.generatepress.com/article/how-to-create-a-page-hero/#step-5-position-the-contentSeptember 2, 2019 at 4:04 pm #999519Jana
Thanks for the link – I’ll check it out. And thanks developing this awesome theme!!
September 2, 2019 at 4:07 pm #999520Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.