Embeding Youtube video
This topic contains 16 replies, has 2 voices, and was last updated by Alex Rollin 4 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 17, 2020 at 9:57 pm #526240
Hi guys,
I’m having trouble getting video to display on my listings.
On the listing above, there should be a video showing just underneath the photo gallery.
I’ve previously tried adding in the standard field ‘Video’ and then adding it in as a Tab. That didn’t work. I’ve just looked at some of your documentation, and tried setting up as TextField instead and allowing the option to Embed Media URLs, but that hasn’t worked either.
Can you help please?
Thanks,
DaveJanuary 17, 2020 at 10:03 pm #526241This reply has been marked as private.January 17, 2020 at 10:33 pm #526248You should use a textarea field.
The Video field is in fact just a textarea field.
To support embed you will need to expand the advanced options and enable the setting for “Enable media embed”
Let us know how it goes
January 18, 2020 at 11:57 am #526320Hi Alex,
That’s currently the setup I have. It’s now just a standard TextField with ‘Embed Media URLs’ selected.
In the admin panel, the video is showing just fine, but it won’t display on either the front end form or published listing.
Thanks,
DaveJanuary 18, 2020 at 2:04 pm #526332Just following up, I’ve now managed to fix it and get them appearing. Turns out it was some 0 padding I’d applied on the class for some reason. Can’t remember why, but either way, it’s showing again.
Thanks for your help.
Dave
January 22, 2020 at 3:48 pm #526876Hi again, after thinking it was fixed, I’m afraid I’ve still got an issue now…
The video is now appearing when I add the YouTube URL in the back end. However, when users try to add it in using the front end form, it’s not working like this…
https://whatsonhub.co.uk/events/united-kingdom/east-riding-of-yorkshire/mamma-mia-33/
The field in the settings is set as a Text Field and has Embed Media URLs selected.
Thanks,
DaveJanuary 22, 2020 at 5:13 pm #526901WordPress oEmbed does not support rendering videos from https://youtu.be/ URLs.
Here is the list of URLs supported
https://wordpress.org/support/article/embeds/January 22, 2020 at 9:01 pm #526922Hi Alex.
I looked at that article and it says YouTube is fully supported as long as it’s not a private video.
In the WP Admin panel it will automatically embed a YouTube video no problem. I thought that the Text Field editor on the front end is exactly the same. Are you sure it’s not supposed to embed the YouTube video in the front end form?
Also, it’s doing the same with Vimeo videos yet in that article, it’s also saying it’s supported.
Thanks,
DaveJanuary 23, 2020 at 7:27 am #526965Can you share a Vimeo example?
The issue is with the URL. Normal Youtube.com videos are supported.
January 30, 2020 at 3:46 pm #528069Hi Alex,
Sorry, only just seen your reply.
Vimeo is now working for some reason. When I was emailing you last week, it wasn’t.
But YouTube videos still don’t work. See this listing here:
https://whatsonhub.co.uk/events/united-kingdom/west-yorkshire/trevor-noah-loud-clear-tour-2020/I added a youtube.com url into the textfield on the frontend form, but after making the listing live, it’s only published the URL.
I did exactly the same for vimeo, and although it didn’t preview correctly before publishing, it was ok once live.
https://whatsonhub.co.uk/events/united-kingdom/west-yorkshire/chase-status/
Can you help?
Thanks,
DaveJanuary 30, 2020 at 4:19 pm #528075Youtube seems to work on your site, see screenshot
January 30, 2020 at 4:26 pm #528078Hi Alex,
That’s because I adjusted that Mamma Mia one in the backend admin.
This one: https://whatsonhub.co.uk/events/united-kingdom/west-yorkshire/trevor-noah-loud-clear-tour-2020/
.. is a real example and does not work when using the GD front end event submission form.
Thanks,
DaveFebruary 1, 2020 at 12:33 am #528311The URL can’t be wrapped in any other tags. It was wrapped in an a tag.
On save and reload it still showed due to cache, so, be sure to load a fresh copy like this:
https://whatsonhub.co.uk/events/united-kingdom/west-yorkshire/trevor-noah-loud-clear-tour-2020/?x=y
February 1, 2020 at 9:22 am #528337Ah I see, thanks Alex.
Do you know a way that I can disable the rich text editor to show on that form? It’s copying the formatting from YouTube and wrapping it in those tags. A user would have to know to only paste text only but most won’t do that. If we can disable the rich text editor at least, leaving only the plain text editor, I think it would solve the issue.
Thanks,
DaveFebruary 1, 2020 at 1:30 pm #528361In the custom field settings for the textarea, in the advanced options, the last one is to “Show advanced editor”. Just make sure that is disabled.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket