Moderator
James Huff
(@macmanx)
Volunteer Moderator
Hm, very strange, nothing was really changed with embeds.
Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.
If that does not resolve the issue, try switching to the Twenty Fifteen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).
Yes very strange, i manage various blogs on wordpress and only one have this problem after the update.
I already tried deactivating all plugins and same thing.
I will try changing the theme. Also I had read that could be a server problem and youtube links but im investigating.
Moderator
James Huff
(@macmanx)
Volunteer Moderator
It could be, but much easier to rule-out the theme first. Just switch to Twenty Fifteen, see if you have the same problem, then switch back. 1 minute max. 🙂
Changing the theme works, but changing back to my theme still doesn’t work… so is the theme D =
But i realize that embedding the video with width and height it works, without it doesn’t. My solution for now.
Thanks for your answers.
Moderator
James Huff
(@macmanx)
Volunteer Moderator
What is the name of the theme you’re using?
Alright, i have this code on my theme to made the embed responsiveness
function alx_embed_html( $html ) {
return '<div class="video-container">' . $html . '</div>';
}
add_filter( 'embed_oembed_html', 'alx_embed_html', 10, 3 );
add_filter( 'video_embed_html', 'alx_embed_html' ); // Jetpack
?>
I thought it was that, so i deleted and the responsiveness stop working, i added back and problem solved! D =
I paste the youtube link and show up right away as should it be = D
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Perfect, thanks for sharing that!