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
  • Author
    Posts
  • #526240

    Dave
    Full Member
    Post count: 205

    Hi guys,

    I’m having trouble getting video to display on my listings.

    https://whatsonhub.co.uk/events/united-kingdom/east-riding-of-yorkshire/hull-city-v-chelsea-fa-cup-4th-round/

    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,
    Dave

    #526241

    Dave
    Full Member
    Post count: 205
    This reply has been marked as private.
    #526248

    Alex Rollin
    Moderator
    Post count: 27815

    You 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

    #526320

    Dave
    Full Member
    Post count: 205

    Hi 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,
    Dave

    #526332

    Dave
    Full Member
    Post count: 205

    Just 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

    #526876

    Dave
    Full Member
    Post count: 205

    Hi 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,
    Dave

    #526901

    Alex Rollin
    Moderator
    Post count: 27815

    WordPress oEmbed does not support rendering videos from https://youtu.be/ URLs.

    Here is the list of URLs supported
    https://wordpress.org/support/article/embeds/

    #526922

    Dave
    Full Member
    Post count: 205

    Hi 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,
    Dave

    #526965

    Alex Rollin
    Moderator
    Post count: 27815

    Can you share a Vimeo example?

    The issue is with the URL. Normal Youtube.com videos are supported.

    #528069

    Dave
    Full Member
    Post count: 205

    Hi 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,
    Dave

    #528075

    Alex Rollin
    Moderator
    Post count: 27815

    Youtube seems to work on your site, see screenshot

    #528078

    Dave
    Full Member
    Post count: 205

    Hi 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,
    Dave

    #528311

    Alex Rollin
    Moderator
    Post count: 27815

    The 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

    #528337

    Dave
    Full Member
    Post count: 205

    Ah 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,
    Dave

    #528361

    Alex Rollin
    Moderator
    Post count: 27815

    In 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.

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount