- This topic has 9 replies, 3 voices, and was last updated 2 years, 4 months ago by
Leo.
-
AuthorPosts
-
April 12, 2023 at 12:15 am #2606642
Aaron
Any ideas how to remove this extra space and only have the height at 100% of what it needs to be? Thanks!
April 12, 2023 at 12:32 am #2606662Fernando Customer Support
Hi Aaron,
The Embed wrapper has a large bottom padding. It’s coming from Autoptimize. Can you try disabling that first so we can see where it’s really coming from?
April 12, 2023 at 1:22 am #2606726Aaron
You bet – deactivated.
April 12, 2023 at 1:51 am #2606761Fernando Customer Support
Do you have the Gutenberg plugin installed? If so, you can disable that. That’s not needed for WP Blocks to work.
The issue seems to be coming from that plugin.
April 12, 2023 at 11:28 am #2607654Aaron
Yes, I disabled Gutenberg and refreshed, but the issue is still there.
I went ahead and disabled all of my plugins (even GP Premium), refreshed, and the issue is still there. I then also changed the theme to WordPress 2023 on top of that, and it’s still there.
Tried running this code in functions.php, but still there:
function my_embed_defaults($defaults) { $defaults['height'] = '100%'; return $defaults; } add_filter('embed_defaults', 'my_embed_defaults');
I was thinking it might be a problem with spotify’s iFrame itself, but the iFrame should only be 152px per the below. So it must be a wordpress setting that’s causing this?
<figure class="wp-block-embed is-type-rich is-provider-spotify wp-block-embed-spotify wp-embed-aspect-21-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"> <iframe title="Spotify Embed: Behind The Bastards: Trailer" style="border-radius: 12px" width="100%" height="152" frameborder="0" allowfullscreen allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy" src="https://open.spotify.com/embed/episode/0vlDR2VGi9ke9AYBOqTwaQ?si=ei9nhLGsTAObmapM4ukI6w&utm_source=oembed"></iframe> </div></figure>
Will leave as-is for a bit – this is a strange one, any ideas?
April 12, 2023 at 11:42 am #2607673Leo
StaffCustomer SupportI went ahead and disabled all of my plugins (even GP Premium), refreshed, and the issue is still there. I then also changed the theme to WordPress 2023 on top of that, and it’s still there.
Thanks for doing the test and confirm that this is a not theme issue 🙂
I was thinking it might be a problem with spotify’s iFrame itself, but the iFrame should only be 152px per the below. So it must be a wordpress setting that’s causing this?
You might want to check with Spotify or WordPress’ support team to see if they have heard similar reports and can point you in the right direction.
April 12, 2023 at 11:59 am #2607684Aaron
Will do – can you please do a quick test on your WordPress test theme by embedding that Spotify link into a test post? I want to see if this is a “me” problem or a global issue you guys are experiencing as well. Much appreciated.
April 12, 2023 at 4:11 pm #2607891Leo
StaffCustomer SupportIf you did the debugging tests above and the issue still exists then I think it’s safe to say that it’s a global problem 🙂
April 12, 2023 at 5:15 pm #2607919Aaron
/e – Nevermind, thanks Leo.
April 13, 2023 at 9:45 am #2608694Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.