Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

WordPress or my theme fails to embed this video URL:

https://www.youtube.com/embed/vsTrAfJFLXI?rel=0?controls=0

but works with this URL:

https://www.youtube.com/watch?v=vsTrAfJFLXI

I need to get rid of the youtube control buttons in the preview, but cannot use embed or the iframe because that just creates an hyperlink. Any ideas?

WP version 3.7.1

share|improve this question
    
I'm not sure if WordPress recognizes such urls. Why can't you just put this video in normal (second) url form? What exactly are you trying to achieve? –  Krzysiek Dróżdż Dec 10 '13 at 10:38
    
I'm trying to loose the bottom control bar and just leave the play icon in the center of the video. And the control bar would appear once the player clicks the play icon. –  Laniakea Dec 10 '13 at 10:44
    
Do you want this look on all youtube videos? Or only on this one? –  Krzysiek Dróżdż Dec 10 '13 at 10:58
    
On all of the videos. –  Laniakea Dec 10 '13 at 10:59

2 Answers 2

up vote 1 down vote accepted

Having &controls=0 instead of ?controls=0solved the issue for me.

share|improve this answer

Have you tried switching off all your plugins and changing the theme to see if anything might be causing a conflict of some sort? If it works, then start by changing your theme back, refreshing the page and seeing that works. Introduce the plugins one by one and refresh the page to see if any of those might be the culprit?

share|improve this answer
    
I've only have one plugin activated and that is the advanced code editor. Deactivating it made no difference. –  Laniakea Dec 10 '13 at 10:35
    
Please note that this kind of debug-ish narrowing down is considered more suitable as comments on the question rather than answer. –  Rarst Dec 12 '13 at 13:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.