Huge Space Above Youtube Videos

Since WordPress 5.0 and Gutenberg, large space appears above embedded YouTube videos.
To solve the proprem go to:
dashboard→appearance→Customize > Custom CSS
try adding the below code:

.wp-embed-responsive .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper:before {
    padding-top: 0;
}

if it does not work, delete it, try the below code:

.wp-embed-responsive .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
display: none;
}

Hope this can be helpful.

0
SNSでシェア❣