Relevant Styles Not Loaded with add_theme_support( ‘responsive-embeds’ )
-
Howdy!
So I’m trying to get a new theme in place for my user that plays right with the Block editor (that I’m still massaging him into using properly).
Right now we use the Fluid Video Embeds plugin but I was hoping to take advantage of the
add_theme_support( 'responsive-embeds' );
for the Video block. This adds a bunch of stuff around the iFrame of a YouTube video including all these classes on the
figure
element:<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio">
The problem is none of those styles are loaded. I found many of them in
/wp-includes/blocks/embed/style.css
and/wp-includes/css/dist/block-library/style.css
but neither file is loaded. So I tried addingadd_theme_support( 'wp-block-styles' );
but none of those styles came in and I don’t feel like digging through the
<head>
to see what changed if anything.How do you get these styles? Is there a way for them to be attached by standard oEmbed functionality like in the Classic Editor and Classic Paragraph Block?
Thanks!
Chris
- The topic ‘Relevant Styles Not Loaded with add_theme_support( ‘responsive-embeds’ )’ is closed to new replies.