Youtube video not showing in banner


My banner works fine. Just added a youtube video and it appears embedded on a regular page but the banner only doesnt show the youtube box at all.

Do I have to embed the raw youtube code instead?

(Jeff Atwood) #2

Hmm, yeah, embeds are not really supported in the banner. We’d have to think of enhancing the feature.


I worked around it by customising my html with a bit of jquery to inject a youtube embed code:

So in the custom header:


function readyFn( jQuery ) {
    // check if sign up button showing
    if ( $('.sign-up-button').length ) {
         $('#banner-content').prepend("<div style='float:right; margin:0 auto'><iframe src='' frameborder=\"0\" allowfullscreen></iframe></div>");

// when the entire window loads up:
$( window ).load( readyFn );


Only thing is the jquery only runs on the first load of the site so video disappears if you navigate to any of the topics :frowning:

(Simon Cossar) #5

If you use this plugin you can add a Youtube iframe to the banner post: