• Hello all,

    I have a strange issue that has me perplexed. I have some pages with embeded youtube videos. I am getting reports that there are no videos on the page. Upon inspection, some of the desktops I tested had the video and some had a blank space where the video should be.

    – I am using a 2016 child theme.
    – I have read the embed codex.
    – I am not using the visual editor. I’m using text and hand coding the <iframe> supplied by youtube.

    One additional test I have done is save the html from the generated page, stuck it in the root of the web sever and hit that url from the non-working browser… and it works. I have pasted a link to the page generated through wordpress and the link to the html file below. Would be interested in some ideas as to why this would happen as well as some suggested work arounds.

    http://www.ariamedicalaesthetics.com/microneedling
    http://www.ariamedicalaesthetics.com/microtest.html

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am not using the visual editor. I’m using text and hand coding the <iframe> supplied by youtube.

    From: https://codex.wordpress.org/Embeds#Usage

    To embed a video or another object into a post or page, place its URL into the content area. Make sure the URL is on its own line and not hyperlinked (clickable when viewing the post).

    For example:

    Check out this cool video:
    
    
    
    That was a cool video.

    WordPress will automatically turn the URL into a YouTube embed and provide a live preview in the visual editor.

    You do not need the <iframe> supplied by youtube. Just paste the address of the video that is in the browser address bar into your post/page and “WordPress will automatically turn the URL into a YouTube embed”.

    The video you see here on my dev site: http://neotechnomadbase.neotechnomad.ca/test-page-two/ is simply the video url (address) pasted into the text/visual editor on a line by itself.
    Leaving a space above and below the link (…such as the example above) will give it some margin from the text.

    Thread Starter fp5885

    (@fp5885)

    As I said in my post, I have read the embed codex that you referenced. It doesn’t work. I have tried to embed the video in the visual editor with both the link by itself as well as the [embed] tag. Neither works. The link by itself displays the link, the [embed] tag displays a blank space. As I said, I’m not using the visual editor.

    Any other pointers?

    Thanks.

    You are using Page Builder by SiteOrigin. There seems to be multiple issues with video embeds and SiteOrigin.
    SiteOrigin has a “video embed widget” that is to be used when embedding videos – #9 in the list of Page Builder by SiteOrigin plugin.
    Because you are using SiteOrigin Page Builder is why the natural functioning of WordPress oEmbed embedding is not working.

    Thread Starter fp5885

    (@fp5885)

    Awesome! Super helpful. Switching to using the widget worked. Thanks again for your help.

    If everything is working now, you could mark this thread “Resolved”.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘youtube video not working … sometimes’ is closed to new replies.