Wenn ihr bei DIVI die Empfohlenen Videos ausblenden wollt, dann könnt ihr nicht mit ?rel=0 arbeiten – das wird ignoriert und das Video wird nicht abgespielt.
Lösung
Loggt euch einfach in wp-admin eures WordPress System ein, geht dann zu:
Divi / Integration / und fügt den Code in den «Add code to the < head > of your blog» ein
Solution
If you want to Disable related Youtube Videos, use this code.
Login to wp-admin and in Divi / Integration / «Add code to the < head > of your blog»
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <script type="text/javascript"> (function($) { $(window).load(function() { // Disable YouTube Related Videos $('.fluid-width-video-wrapper').each(function() { var src = $(this).find('iframe').attr('src'); $(this).find('iframe').attr('src', src + '&rel=0'); }); }); $(document).ready(function() { // Open project promo in new tab. $('.single-project .et_pb_promo').find('a').attr('target', '_blank'); }); })(jQuery); </script> |
0 Kommentare