Ben Zen
asked 9 years ago

1st of all I <3 the Minion Theme 😉
I have discovered a mysterious problem…
No matter if I use the accordion of the "Shortcodes Ultimate" Plugin or the accordion of the "WP Canvas – Shortcodes" Plugin – both won’t display Youtube videos anymore.
This only happens with the DW Minion Theme.

THANK YOU in advance 4 the help!

BTW: If the "jQuery Smooth Scroll" plugin is installed & active, no DW Minion widget is functional. Just in case someone has this problem.

1 Answers
answered 9 years ago

YouTube videos can be easily embedded into the Text widget by using iframe. However, this is not the case for the Embed. If you want to insert video into text widget using oEmbed, add the following code in your theme’s functions.php file.

add_filter( 'widget_text', array( $wp_embed, 'run_shortcode' ), 8 );
add_filter( 'widget_text', array( $wp_embed, 'autoembed' ), 8 );

Save the file and now you can enjoy another convenient way to embed your video to Text widget.
See the screenshot:

Hope this helps !

Powered by DW Question & Answer Pro