- This topic has 9 replies, 2 voices, and was last updated 6 years, 1 month ago by Skandha.
-
AuthorPosts
-
March 9, 2018 at 2:00 am #133162tmurthyParticipant
Hi All,
I am trying to add a video to header but when I add it is not showing 100% of my video. Our site address is: dezignhut.com.
Could you please help me to fix this.
Thanks,
TamilMarch 9, 2018 at 2:39 am #133163SkandhaParticipant@tmurthy: Go to => Appearance => Customize => Additional CSS and add the following CSS Code.
#wp-custom-header-video { object-fit:fill; }
Let me know if this solves your issue!
Regards,
SkandhaMarch 9, 2018 at 2:45 am #133164tmurthyParticipantThank you, Skandha.
It is working.
But please note that the video is shrinking horizontally.
Is it possible to reduce the height of the video so it would fit prepositionally.
March 9, 2018 at 2:56 am #133167tmurthyParticipantJust to add some points to my above post.
When we place the image as header it works fine. We can see logo and the menu on the screen without scrolling.
But we add the same size of video which is 1920 x 689 it is going wrong.March 9, 2018 at 3:26 am #133169tmurthyParticipantHi Skandha,
Now I used ‘contain’ property to ‘object-fit’. It works good. But is there any chance to reduce the top and bottom of the black space which is created while we contain the video.
Thanks,
TamilMarch 9, 2018 at 7:44 am #133189tmurthyParticipantI have fixed it. But without your guidance about ‘object-fit’, I could not have sorted it out. A BIG THANK YOU! 🙂
March 10, 2018 at 11:54 pm #133253SkandhaParticipantHello @tmurthy, Sorry for the late reply. I will forward this issue to the development team let you know as soon as there comes a better solution for it.
Regards,
SkandhaMarch 12, 2018 at 2:12 am #133308SkandhaParticipantHello @tmurthy, I think I found a better solution for your issue.
Go to => Appearance => Customize => Additional CSS and the following CSS Code.
@media screen and (min-width:64em) { .has-header-video .custom-header-media { min-height:450px; } } #wp-custom-header-video { object-fit:cover; }
Let me know if this works out for you.
Regards,
SkandhaMarch 12, 2018 at 5:14 am #133318tmurthyParticipantThank you, Skandha.
March 12, 2018 at 5:20 am #133319 -
AuthorPosts
- The topic ‘Adding Video to Header’ is closed to new replies.