• Resolved darknessfx

    (@darknessfx)


    Hi,

    I’m using WP Lyte for a while and really enjoyed, great work.

    Looks like something changed in recent updates that made Youtube videos on RSS Feed to stop being embeded, it used to be able to play videos directly from the rss feed but now its just attaching an img (from lyteCache.php) and a link to the article.

    I tried to remove the jetpack-responsive-videos theme support, also tried to change some WP Lyte settings like Microdata or Cached Thumbnail, but didn’t fixed the issue.

    Any help is appreciated,
    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    afraid LYTE has always just added in image (the thumnail) + a link darknessfx, must have been something else making that a clickable video?

    Thread Starter darknessfx

    (@darknessfx)

    Thanks for the reply @optimizingmatters . I don’t know what got different, perhaps it was some videos I imported from other RSS feeds that worked while those using lyte don’t and I didn’t noticied before.

    I got able to fix this issue, I went into the wp-youtube-lyte.php, at line 394 (after $the_content) I added this code:

    
    if ($lyte_feed) {
      $the_content = "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/".$vid."\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; \" allowfullscreen=\"1\"></iframe><br />Watch this video <a href=\"https://youtu.be/".$vid."\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow external noopener noreferrer\" class=\"wpel-icon-right\">on YouTube<span class=\"wpel-icon wpel-image wpel-icon-6\"></span></a>.<br />";
    }
    

    This way it bypass the default $lyte_feed behaviour and forces the feed to embed the YT video directly.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘RSS Feed Youtube not embed’ is closed to new replies.