Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #164600
    billyd
    Participant

    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?

    #164645
    sapana
    Participant

    @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,
    Sapana

    #164680
    billyd
    Participant

    Fantastic Sapana, thank you very much that has completely fixed it!

    #164700
    sapana
    Participant

    @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,
    Sapana

    #164702
    billyd
    Participant

    I have already done this 🙂

    #164704
    sapana
    Participant

    @billyd:I read your comments. They were really helpful. I greatly appreciate you took the time to write them. Thank you 🙂

    Best wishes,
    Sapana

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘I had to strip the extra css from all youtube embeds’ is closed to new replies.