Tagged: Youtube
-
AuthorPosts
-
November 20, 2018 at 11:31 am #1035521
hi suppot team
i would like to show videos with:
– no youtube contorl field
– no youtube infos
– no follow up videso at the endAll the best, Pascal
November 23, 2018 at 4:50 pm #1036998Hey Pascal,
Thank you for using Enfold.
This thread should help:
// https://kriesi.at/support/topic/adding-parameter-to-youtube-urls
I modified the script a bit:
function youtube_fix(){ ?> <script> (function($){ $('body').on('DOMNodeInserted', function(){ $('iframe.mfp-iframe[src*="youtube.com"]').each(function() { var _src = $(this).attr("src") $(this).attr("src", _src + '&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&showinfo=0&controls=0') }); }) })(jQuery); </script> <?php } add_action('wp_footer', 'youtube_fix');
Best regards,
IsmaelNovember 26, 2018 at 4:04 pm #1037668Hi Ismael,
i put the script in the functions.php but its still the same:
All the best,
PascalNovember 30, 2018 at 12:23 am #1039178Hi,
I load your web site and I cant see the code on functions.php
Best regards,
BasilisJanuary 21, 2019 at 11:01 am #1056525Hi Basis
But the the releted videos at the end still apear.
All the best, Pascal
January 22, 2019 at 5:16 am #1057023Hi,
Thanks for the update. According to the youtube player API, you will no longer be able to disable related videos.
The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos.
// https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018
Best regards,
IsmaelSeptember 26, 2019 at 3:09 pm #1142287Hello,
Although this is an older question, I may have the solution for this. A little external software named Vidbox is solving the problem. You can enter the Youtube link in Vidbox and add a thumbnail. After that you get an embed code that you can insert in the code block of Enfold.
It shows than only related videos of your own.
It’s available on WarriorPlus. You can check how it works onThere are also some small videos in the sidebar.
Good luck with it.Best regards,
HenkSeptember 27, 2019 at 5:19 pm #1142842Hi Henk,
Thanks for sharing this information.
We appreciate it a lot :)Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.