On mobile doesn't load custom thumbnail and shows grey/black sometimes
-
I’ve been enjoying the speed boost from wp-youtube-lyte and though it works nicely on desktop, I am having issues with it on mobile. I am loading a post’s featured image as the thumbnail for the video using:
add_filter('lyte_match_thumburl','lyte_my_own_thumburl'); function lyte_my_own_thumburl($thumb) { if(has_post_thumbnail()) { return wp_get_attachment_image_url( get_post_thumbnail_id(), "large" ); } else { return $thumb; } }
This works in desktop. But in mobile, none of the custom thumbnails show up. It looks like the normal youtube embed is showing up. Also, some of the videos have a black or grey background. Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘On mobile doesn't load custom thumbnail and shows grey/black sometimes’ is closed to new replies.