awkward_clam — 2012-12-19T20:53:37-05:00 — #1
I am using an Elegant Theme which has a slider on the home page. By default, the slider uses featured images, but I would like one of the slides to have an embedded youtube video instead.
I have tried the theme support forums, but it looks like this feature is not supported.
Anyway, I am trying to soldier through. Here is the website:
Can someone give me an idea of what the initial steps would be, or will this be kind of a nightmare? Thanks
ralphm — 2012-12-19T22:48:34-05:00 — #2
I just tried an experiment in Chrome of replace the <img> element in your slider with a YouTube embedded video, and it worked perfectly.
Here was the image code:
<img width="<font color='"#FF0000"'>406</font>" height="<font color='"#FF0000"'>226</font>" src="http://www.yourvancouvermortgagebroker.ca/wp-content/uploads/2010/12/Vancouver-Mortgage-Broker-406x226.jpg" class="thumb wp-post-image" alt="Vancouver Mortgage Broker Photos" title="Vancouver Mortgage Broker Photos">
and I just replaced it with embed code from YouTube:
<iframe width="406" height="226" src="http://www.youtube.com/embed/EbKa-Qs1dVc?rel=0" frameborder="0" allowfullscreen></iframe>
The only change I made to the code was the dimensions of the video, to match those of the image it replaced.
I'm not sure how you insert this via WP, but hopefully you can just place the embed code where you would place the image. (If it's a big problem, just get a better CMS. :rolleyes: )
You can grad the embed code for videos on YouTube by clicking the Share button under a vid and then Embed.
awkward_clam — 2012-12-20T12:31:59-05:00 — #3
Thanks for the tip. Will be a little tricky with WP since it's all done with PHP but I will replace that one area in the index.php with basic HTML.
irfan75_04 — 2013-03-14T03:57:38-04:00 — #4
irfan75_04 — 2013-03-14T03:59:17-04:00 — #5
can u suggest me how to select an image or video from the post, because i use video in few posts only
ralphm — 2013-03-14T05:51:28-04:00 — #6
It's not really clear what you are asking here. Anyhow, start a new thread, with as much info as possible.