Support » Plugin: WP YouTube Lyte » iFrame parameter modestbranding don’t work

  • Resolved divano

    (@divano)


    Great plugin, but iFrame parameters for playlist and single video like modestbranding don’t works. Can i do something?

    Thanks

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

    (@optimizingmatters)

    You’ll have to edit wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js to enforce that I’m afraid Divano.

    hope this helps,
    frank

    You’re great!…Now it’s all right…Thank you very much

    • This reply was modified 3 months, 3 weeks ago by  divano.

    Hi,

    I do not know if it was preferable that I opened another thread, I continued here to not make too much confusion. I would like to know if, instead of using the thumbnails from the youtube playlist, I can set a static image when the player is in stop? A simple image saved in a folder of cpanel?

    Thanks in advance

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hey divano;
    you can change the thumbnail with a couple of lines of code hooking into the LYTE api, e.g.;

    
    add_filter('lyte_match_thumburl','lyte_my_own_thumburl');
    function lyte_my_own_thumburl($thumb) {
            return "https://secure.gravatar.com/avatar/9638840deee19659d10b487fdcfbcb20?s=240&d=retro&r=g";
    }

    hope this helps,
    frank

    Thanks man…I already added the string on file function.php, but doesn’t work, the thumbnail is always: https://i.ytimg.com/vi/thisisnotavalidvid/hqdefault.jpg

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    just tested it and does work for me;

    make sure your page cache is cleared and if it still doesn’t work try adding it using the code snippets plugin instead of in functions.php?

    Are you talking about single videos or playlist? I’m trying on a playlist.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    both, here’s a playlist;

    Strange….on single videos it’s all right, works wonderfully, while on the playlist seems that doesn’t want to take the image.

    I think I understand, even though I haven’t solved the problem. Something is wrong with the widgets in the sidebar. The playlist is in fact inserted there and does not “take” the image, but if I insert the playlist even within a post, like a single video, everything also works in the widget….

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, widgets, for those you have to use lyte_filter_widget_thumb, so the code snippet would become;

    
    add_filter('lyte_filter_widget_thumb','lyte_my_own_thumburl');
    function lyte_my_own_thumburl($thumb) {
            return "https://secure.gravatar.com/avatar/9638840deee19659d10b487fdcfbcb20?s=240&d=retro&r=g";
    }

    Sorry if I answer just now… You are a friend and a genius. Now everything works, both in the posts, and in the widget of the sidebar. Probably there is only some problem with the cache, because in some posts and categories, the player doesn’t appear, but if I clear the Autoptimize cache and reload the pages, everything fixes.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy it works divano 🙂

    frank

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.