I think I know what is wrong with this. I have been adding the youtube video in the post in an iFrame. So the plugin does work with a copied URL from youtube, but I still have a question:
Just adding the YT link works, but if you look at the video, the edges are trimmed – the preview image is not displaying the full size. Is there any way to adjust the preview image?
Any way to fix this?
Thanks and appreciate your support
Andy
Hi Andy,
you can add the following CSS code to your theme’s CSS file in order to adjust the preview image:
a.lazy-load-youtube, .lazy-load-vimeo { background-size: cover !important; }
Does this solve your problem?
Best regards,
Kevin
Yes, this works perfectly, thanks Kevin!
Just another question, please – where does the plugin get the thumbnail from and is there a way to:
1. Change the thumbnail
2. Improve the quality of the thumbnail?
Also, I am used to having a number of parameters added within an ifrane, but having a URL seems it cannot have a number of parameters. Is there a way to add these in? https://developers.google.com/youtube/player_parameters
Danke für Ihre Hilfe
Andy
The plugin gets the thumbnail from Youtube directly. So you can’t change it.
In some cases it would be possible to have a thumbnail with better quality – but not in all cases. So I leave the plugin as it is (no better quality for thumbnails). Besides, that’s better for your page load time.
To your last question, maybe this thread can help you: http://wordpress.org/support/topic/plugin-does-not-work-when-using-the-youtube-embed-code-from-youtube?replies=4
Regards,
Kevin