My video embeds suddenly have a massive 56% padding above them. I can’t fix this with a stylesheet because the styles are inline. Pretty certain that this isn’t my code
A while back you posted that videos in the podcasting section weren’t maintaining aspect ratio.
There’s some inline styling now that fixes that using a padding trick that is pretty standard.
But your theme has some extra styling that breaks it. You are adding “fluid-width-video-wrapper” to the div container class for the iframe which sets the padding back to 0, clashing with the container. If you stop adding the fluid-width-video-wrapper it will be fine.
The padding trick is also used on the video shortcode, so that will break on your site if you have some jQuery that adds that fluid-width-video-wrapper
This reply was modified 4 weeks, 1 day ago by Andy.
I’m only using the shortcode and haven’t made any changes to the ‘fluid-width-video-wrapper’. This change just appeared a week or three ago and I didn’t notice but as it’s within the the code generated by the shortcode I assumed that it was something you changed.The only other possibility is that a theme update includes some sort of automatic insertion of this class of Div.
The 0px padding that you mentioned has always been there and will always be overridden by padding-top anyway.
Anyways, I’ve introduced a negative margin as a work around.
Hope you had a blessed Christmas 🙂
This reply was modified 4 weeks, 1 day ago by seanmcint.
This reply was modified 4 weeks, 1 day ago by seanmcint.
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Church Admin Plugin Cookies Policy
Our Website uses cookies to improve your experience. Please visit our Personal Data and Cookie Policy page for more information about cookies and how we use them.