WordPress

Allgemein

Technik

Design

Konzept

WordPress Plugins

Interessantes

Vermarktung

Themen

Font / Schriften

Social Media

Youtube

eCommerce

Gemischtes

Kolumne

Webinar

Blog Archiv

Kurse / Webinare

Meine nächste Webinare / Kurse

DIVI: Empfohlene Videos ausblenden / Disable related YouTube Videos

von | Jun 11, 2019 | Allgemein | 0 Kommentare

Schlagwörter: DIVI - Youtube

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 + '&amp;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

Einen Kommentar abschicken

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert