Support Forum

Embedding YouTube videos in posts

UN
Unknown
Member

I’ve installed Simple:Press on a website – tfltruck.com – and I don’t see a way to embed YouTube videos. Is this supported by Simple:Press?

Videos are an important part of the website, so if this can’t be done, I will have to explore other options. I am planning to purchase support and plugins, but I’m not going to buy anything until I know that YouTube videos can be embedded.

I’ve tried just putting in the straight URL and I’ve tried to put in the YouTube embed code and neither one worked.

Thanks and I hope to hear back soon.

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

YouTube videos are handled by the WordPress oEmbed protocols which require the straight url of the video to be used in the post. I know you said above it did not work for you but I am afraid it does work for everyone else and is now the recommended ‘WordPress’ way of including a YouTube video – along with many other sites.
If it genuinely did not work perhaps you have some sort of WP ‘media’ plugin active that is both unnecessary and trying to do something where it should not.

UN
Unknown
Member

It doesn’t work, the video doesn’t show up. Before installing Simple:Press I tried bbPress and the embed works. Also, the standard embed works fine when it’s used in blog posts and pages. It only failed to work using Simple:Press.

YS Yellow Swordfish
Yellow Swordfish
Member

https://www.youtube.com/watch?v=4AWRHBHDVlQ

Works well for me and all our other users. I suppose you are pasting in the url from the YouTube address bar. Or – better still – the url you get with the ‘share’ option

UN
Unknown
Member

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

I’m pasting in the URL from the address bar. 

UN
Unknown
Member

I’ve done the following testing to try to get this to work:

1. Disabled all plugins that were installed after installing Simple:Press

2. Verified that there are no installed media plugins

3. Tested YouTube embedding on posts and pages (both work)

I checked the page source for both this topic and the topic on my forum and I noticed that the embed was different.

On this site: <iframe width=”500” height=”281” src=”https://www.youtube.com/embed/JVTfZZ0Ppy8?feature=oembed” frameborder=”0” allowfullscreen></iframe>

On my site: <iframe width=”940” height=”529” src=”https://www.youtube.com/embed/JVTfZZ0Ppy8?feature=oembed&wmode=transparent” frameborder=”0” allowfullscreen></iframe>

In case it gets stripped out, on my URL, after feature=oembed& and wmode=transparent is a #038 ; (I added a space just in case). I checked a post with an embedded video and it’s doing the same thing.

If you have any idea why this is happening, I would appreciate it. 

UN
Unknown
Member

Sorry to bombard you with questions but is the TinyMCE editor required for the embed functionality to work? That’s the only other difference I see between your forum and my forum.

YS Yellow Swordfish
Yellow Swordfish
Member

No. Like I already said earlier, oEmbed is implemented at the WordPress level. It doesn’t matter how the text is edited and posted. if it does not work then i still suspect you have something active that is interfering and trying to take over. That would be at the display stage.

UN
Unknown
Member

Thank you for your help on this. I found the part of the code that was adding the “transparent” option to the YouTube videos and disabled it, and the problem was still happening. However, I found the root cause. The theme used on the site – Alyeska, with the ThemeBlvd framework – adds a wrapper around embedded videos to make them responsive. This wrapper is what’s causing the videos to not appear. It’s only happening on the forum, so I’m sure it’s a conflict between the forum theme and the site theme.

I’m going to investigate and see if I can disable that functionality through a child theme on the site level, and I’ll read the codex to see what I can do with the forum theme to change the behavior.

If you are aware of any fixes, or any themes that work better with ThemeBlvd themes, please let me know.

Thanks again for your help.

YS Yellow Swordfish
Yellow Swordfish
Member

Afraid I am not, myself, familiar with Alyeska. There are just so many hundreds of themes…!
If it essentially a CSS issue then adding some CSS to the forum styles would probably be the easiest way to deal with things and the forum CSS IS loaded after the WP theme CSS.

JI John Inama
John Inama
Member

I switched the Simple:Press theme to CSS Only and the videos are now showing up just fine. I’ll just have to use this theme for the forum, which is acceptable for me. I already created a child theme to customize it.

Thanks again for your help. I feel much better moving ahead with the forum and purchasing the membership and plugins I need.

YS Yellow Swordfish
Yellow Swordfish
Member

You don’t need to do any of that. You just paste in the url.

PR Philip Ridley
Philip Ridley
Member

I am having a very buggy experience right now, with text sometimes disappearing after editing posts and youtube embeds not showing up, then showing up, then disappearing.