Last active
June 2, 2020 02:26
-
-
Save davewarfel/55fcf5ed586ac816a2fae64f40d8f7b7 to your computer and use it in GitHub Desktop.
How to make LearnDash video progression videos responsive on all devices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* PLEASE NOTE: THIS IS VERY OLD CODE, AND USED TO WORK FOR THE "LEGACY" TEMPLATE, BEFORE LEARNDASH 3.0. IT ALSO DEPENDS ON WHAT THEME YOU ARE USING. | |
* | |
* IT MAY OR MAY NOT WORK FOR YOU. | |
* | |
* I RECOMMEND YOU TRY ENABLING/DISABLE THE "RESPONSIVE VIDEO CSS" OPTION IN LEARNDASH SETTINGS IF YOU'VE HAVING VIDEO ISSUES. | |
*/ | |
/** | |
* This should work for all types of videos: YouTube, Vimeo, Wistia & local videos. | |
* | |
* These styles should be copied & pasted to a child theme or the "Additional CSS" | |
* area of the WordPress Customizer. | |
*/ | |
.ld-video { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
max-width: 100%; | |
} | |
.ld-video iframe, | |
.ld-video object, | |
.ld-video embed, | |
.ld-video video { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} |
Sorry for sounding aggressive- I appreciate your help - I had sent learn dash a request several days ago - I just assumed you were replying to that
Thank you for trying - been frustrated with learndash issues and their lack of support before
I appreciate your trying to help
…Sent from my iPhone
On Jun 1, 2020, at 10:14 PM, Dave Warfel ***@***.***> wrote:
***@***.*** commented on this gist.
Care to share the URL where you found the fix? I looked on LearnDash's known issues page, and it's nowhere to be found on there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
I appreciate your response 🙂. No hard feelings. It was a misunderstanding.
I have been frustrated with their support in the past as well, so I feel ya on that one.
Best of luck with finishing up/launching/selling your courses!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Care to share the URL where you found the fix? I looked on LearnDash's known issues page, and it's nowhere to be found on there.