alphaori
Forum Replies Created
-
Forum: Plugins
In reply to: [WP YouTube Lyte] Custom preview images for videosI think I figured something out. The element used to determine which image is used as the preview image is the dynamically created element “#lyte_<youtubeid>”. This element has both a “background-image” property and a “data-src” property.
I’m attempting to use the same [lyte … /] shortcode in two different posts of different post types. Since its the same youtube video, the youtube video id is the same in both shortcodes. So the first post to get processed will have its “#lyte_<youtubeid>” element’s “background-image” and “data-src” properties set to the post’s featured image url as expected. However, from what I see, the second post processed will have its “#lyte_<youtubeid>” element’s “data-src” property set correctly to the post’s featured image, but the “background-image” property keeps the value it already has (which is the featured image of the first post). This means that the preview image for the video on the second post is the featured image of the first post.
Does this make sense? I’m not sure really where to go from here.
Forum: Plugins
In reply to: [WP YouTube Lyte] Custom preview images for videosActually, I just realized that this code is working on my blog page, but not on my other pages even though I believe this code is called inside the loop. I will investigate further…