Hello SErs! Just before coming up with this post, I attempted to embed a non-Youtube video into one of my upcoming posts (see my Friday Fiction Prompt on the 2nd of Feb!). Prior to this effort, I had only ever embedded Youtube videos into my blog posts. It should all be simple, though, right?
It didn’t quite go as planned, but not to worry: it gave me some good material for this post–always a silver lining! 🙂
So, at the start of all this, my first job was to find an image that called to me for Friday’s post. Pixabay came to the rescue, and I found just the ONE! Great. Then my next job was to embed that awesome video into my blog post. Mmm … not so great!
Okay, then, Google to the rescue … not to be beaten, some research seemed in order.
I found a great webpage that told me the HTML embed codes to use. So, I got busy entering the ‘Text’ area instead of the ‘Visual’ editor in the WordPress blog post creator, and copied and pasted the embed codes. What I had looked something like this …
embed width="123" height="456"//pixabay.com/videos/id-10885/embed
As I wanted you to see the actual code, I had to omit the square brackets  and the http to stop the following message being shown in this post:
Now, when all my attempts to embed produced that message, it left me scratching my head in some chagrin. Why wouldn’t it embed even though I had the correct HTML code?
More research needed.
Back to good old Google I went.
It turns out that WordPress has a Whitelist. Poor old Pixabay isn’t on that list.
Here is the whitelist that I discovered:
The link to this rather useful webpage is HERE.
This left me with a problem. I wanted THAT video. And a lot of sites on this list are paid for services. Grrr.
In order to get this to bed, I had to go under the covers, as it were.
I found a workaround. Not ideal but better than an empty bed. I downloaded the video from Pixabay, and then uploaded it as a private video to my Youtube account where I keep my book movie trailers. I then shared the Youtube link I’d generated to the upcoming Friday Fiction Prompt post and hey presto! Eureka! It embedded! Well … for a while, anyway … ugh! It turns out that I had to go back in and make the video public or it would disappear from the post, lols. So now I have a Pixabay video of rain on my public Youtube list, but at least I have the video on here!
So, yes, a bit clunky and clumsy, but it got the job done. I was determined! If any of you have any ways of embedding non-whitelisted videos that are easy and safe, I’d love to hear from you. What issues have you guys had in the past, if any?
Thanks for stopping by today, and I’ll see you on Friday! 🙂