I would like to link to a vertical youtube video using the video lightbox on the salient theme. The video lightbox option only opens in 16x9, how can i change this to 9x16 instead?
Also, is it possible to link to youtube shorts? or only regular youtube videos?
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
@media only screen and (min-width: 1px) and (max-width: 690px) {
.fancybox-slide {
padding: 5px !important;
}
.fancybox-slide--video .fancybox-content {
padding-top: 177.77% !important;
}
}
I would like to link to a vertical youtube video using the video lightbox on the salient theme. The video lightbox option only opens in 16x9, how can i change this to 9x16 instead?
Also, is it possible to link to youtube shorts? or only regular youtube videos?
Thank you
Hi Ali,
Could the video player element work in place of the video lightbox element.
Its has an option to set the aspect ratio of the video to 9 X 16.
Try that.
No, I don't think so because I would like the video to appear when clicked (similar to lightbox).
Also, what are the differences in the lightbox options in the salient control panel? (Magnific, fancyBox3)
Hey Again,
Please setup a test page so we can write up the custom css for the other ratios that you would like.
Thanks
ThemeNectar Support Team
Hey Again,
Please try using the "FancyBox" Lightbox as its mobile compatible and also the latest.
Thanks
ThemeNectar Support Team
Hi, I've changed the theme lightbox to fancybox3. Still have the same issue.
Hello Ali,
Please try this css:
If it fails. Please send in your admin login credentials so that we can check this out further.
Thanks.
Hey Again,
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Amazing. Thank you.