YouTube Embed Code Not Working on Mobile in Wordpress

Joined
Jul 7, 2017
Messages
71
Likes
14
Degree
0
Hi Everyone

Using Wordpress and free themes, never had an issue but.. I am using the Share then Embed code which uses the iframe from YouTube Just tried it and on mobiles and now the video doesn't show, I just get a broken page icon. Any ideas?

Thankyou
Rob
 
You should be able to just paste the video URL on its own line and WP will embed it. No code needed. The visual editor can also mess with embed and other code.
 
I just paste in the URL in a normal paragraph block and it works just fine. Are you by chance trying to embed a YouTube Shorts video?

If so, you need to manually change the URL to get it to work. Essentially, delete the word "shorts," and ".com" and move the "." before the "be" in YouTube.

So this URL:

Code:
https://youtube.com/shorts/XXXXXXXX

Becomes this URL:
Code:
https://youtu.be/XXXXXXXX
 
I just paste in the URL in a normal paragraph block and it works just fine. Are you by chance trying to embed a YouTube Shorts video?

If so, you need to manually change the URL to get it to work. Essentially, delete the word "shorts," and ".com" and move the "." before the "be" in YouTube.

So this URL:

Code:
https://youtube.com/shorts/XXXXXXXX

Becomes this URL:
Code:
https://youtu.be/XXXXXXXX
Shorts URLs can be embedded just fine. I do this myself.
 
Back