iFrame parameter modestbranding don’t work
-
Great plugin, but iFrame parameters for playlist and single video like modestbranding don’t works. Can i do something?
Thanks
-
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,
frankYou’re great!…Now it’s all right…Thank you very much
-
This reply was modified 6 years, 11 months 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
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,
frankThanks 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
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.
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….
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.
happy it works divano 🙂
frank
-
This reply was modified 6 years, 11 months ago by
The topic ‘iFrame parameter modestbranding don’t work’ is closed to new replies.