Might work, might not work Michael, depends on how you created the API key ..
Creating the key can be … challenging indeed :-/
You’re not wrong!
I’ve made a new project for the plugin and got as far as creating the key:
https://www.dropbox.com/s/8f3wz2mhwjdhw28/api-key.jpg?dl=0
For some reason though when I copy and paste into the WP YouTube Lyte dashboard and test, it says:
Checking your key ...
API key not OK, your key seems to be invalid.
Do you have any idea why that might be or how I might fix that?
Did you create that key on https://console.developers.google.com/apis Michael? Because the screenshot seems to indicate you were elsewhere?
Hi Frank, you’re right! I was in the wrong place. I have the correct API key and it is testing OK in the Lyte dashboard 🙂
I am using this code to embed video in our blog pages (in a custom html block):
<iframe title="How To Make A Small Greenhouse To Grow Vegetable Seedlings | Reclaim Design" class="round_edges" src="https://www.youtube.com/embed/G6CqZJChPl4?rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" width="750" height="422"></iframe>
Here’s the page – https://reclaimdesign.org/diy-trellis-ideas
Is there anything I need to add to this? Or will it work as is?
The Lyte settings I have are:
Player size: 640X360 (YouTube default for 16:9-ratio video)
Add links below embedded videos: No
Player position: Centre
Force HD: No
Add microdata: Yes
Cache thumbnails locally: Yes
I noticed that selecting cache thumbnails creates what looks like a broken YouTube video image:
https://www.dropbox.com/s/2cagu4u03xwom3i/broken-video-image.jpg?dl=0
Is there a way I can change this to be something more user-friendly? Or have I set it up wrong?
One last thing – might there be any issues including this code:
add_filter('lyte_do_mobile','lyte_on_mobile',10,0);
function lyte_on_mobile(){
return true;
}
And if I add it should the local cache be turned off?
Thank you very much for your help 🙂
I’ve just seen this browser console error in the web dev test, not sure if this is related to the broken video image?
https://www.dropbox.com/s/bbohxega88tfmx5/thumbnail-error.jpg?dl=0
And on mobile the video is not shrinking to fit the width of the screen (previously it did)
can you link to the page where this is happening so I can have look?
the thumbnail is getting blocked by Sucuri firewall Michael;

you’ll have to check Sucuri settings to get this unblocked.
Thanks a lot Frank. I’ll get on to them.
Why is it that the video is not responsive on mobile any longer? It retains the large size for some reason.
LYTE uses the width it gets and looks like the parent node(s) don’t have (max-)width set correctly. You’ll need some CSS to set that straight I guess 🙂
Hi Frank, thanks a lot for looking into it for me. Can I please confirm I’ve got the right parent node and then I’ll get on to the CSS 😉 Would it be the table I’ve added it to <table class="text"> or higher up the ladder? If it’s the table I have set that to be:
table.text {
border-collapse: collapse;
border-spacing: 0;
border-width: 0;
margin: 0;
padding: 0;
width: 100%;
}
Thank you very much for your help
That was what I thought yes, but for reasons I don’t understand the width does not “take”. Guess you’ll need to experiment some more .. 😀
It’s odd because if I disable the plugin the video becomes mobile responsive again.
odd indeed, but it’s related to the use of the table somehow; when dragging/dropping the LYTE div outside the table, it is responsive;
