Cannot post some video links on Foundation home page
URL to the page in question:
-
I’m trying to embed the following video on my home page (Foundation theme): http://www.youtube.com/watch?v=tIr1VrgZHd0
And when i click save, the theme rewrites the embed code to be:
[youtube http://www.youtube.com/watch?v=tIr1VrgZHd0&version=3&hl=en_US%5D
Thus, i get the following rendering on my home page: http://www.march4barry.org
Any thoughts on what could be happening here?
Okay, sorry my code actually made the video render in this page, but it is producing a different result on my site which you can see by visitin the home page url above.
Jay,
Good question. Inside a WordPress post, the code you used will cause WordPress to load the video. That’s what happened here. In the theme options page though, you’ll need to use the embed code that YouTube provides under their share link (just below the video). For best results, select the custom size and set it to be 620 pixels wide (the height can be variable. It will look something like this:
<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/tIr1VrgZHd0?rel=0″ frameborder=”0″ allowfullscreen>
If you have any trouble, let me know.
Thanks, Bill. Yes, I pasted the embed code from youtube into the Video Code text box on the Home Page tab of the theme options page. Unfortunately when I click Save Options, it strips away most of the embed code markup and leaves the following string:
[youtube http://www.youtube.com/watch?v=tIr1VrgZHd0&version=3&hl=en_US%5D
Of course, then it doesn’t work. Was thinking of trying to replace the embed code manually in the database.
It’s interesting, this happens with some embed markup and not with others.
I tried embedding the video with the code from this image:
and it didn’t strip out the tags. I took at look at your site and saw the video up so I’m assuming you were able to get it to work one way or another. If I can help at all, just let me know.
- The topic ‘Cannot post some video links on Foundation home page’ is closed to new replies.