Tag Info

New answers tagged


Remove any width/height values in the embed code and include a style iframe{ max-width: 100% } and perhaps add in height: auto. Ultimately, the behavior also depends on other, over-reaching styles included with your theme. If these small things don't help, please come back with a link and/or more detailed example.


There is a filter with the same name as the function wp_embed_handler_youtube https://developer.wordpress.org/reference/hooks/wp_embed_handler_youtube/ add_filter('wp_embed_handler_youtube', 'ehy_callback', 10, 4); function ehy_callback($embed, $attr, $url, $rawattr){ //make necessary changes here return $embed; } You can add the code in ...

Top 50 recent answers are included