- This topic has 5 replies, 2 voices, and was last updated 5 years, 2 months ago by sapana.
-
AuthorPosts
-
January 29, 2019 at 12:56 am #164600billydParticipant
Whenever I embed a youtube vid onto a page in this theme, it displays with a huge empty space above the vid. (Windows 10 desktop, Chrome or Explorer browsers) You can see this at
http://www.diminished5th.nz/home-page/
(a dummy page just to explore the problem)
However, if I go into the properties for the block and remove the extra css classes that have been automatically added in the advanced section, ie
wp-embed-aspect-16-9 wp-has-aspect-ratio
then it displays just fine, with no space above it.
So is there something wrong with these css classes?
January 29, 2019 at 5:46 am #164645sapanaParticipant@billyd:Go to=> Dashboard=> Appearance=> Customize=> Additional CSS=>add the following CSS code
.wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-1-2 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-18-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-21-9 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before, .wp-embed-responsive .wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before{ padding-top:0%; }
Let me know if this works out!
Kind Regards,
SapanaJanuary 29, 2019 at 2:45 pm #164680billydParticipantFantastic Sapana, thank you very much that has completely fixed it!
January 29, 2019 at 10:57 pm #164700sapanaParticipant@billyd:Hello, there, I hope I was able to resolve your issue. If it’s not too much trouble,
I have a quick request: could you please leave an honest review? https://wordpress.org/support/theme/my-music-band/reviews/#new-post Your review will help others know what to expect when they’re looking
for the support I offer. Even a sentence or two would be hugely appreciated.Thanks, and if there’s anything else at all that I can do to help,don’t hesitate to let me know.Kind Regards,
SapanaJanuary 29, 2019 at 11:01 pm #164702billydParticipantI have already done this 🙂
January 29, 2019 at 11:07 pm #164704 -
AuthorPosts
- The topic ‘I had to strip the extra css from all youtube embeds’ is closed to new replies.