Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--
JS uses jQuery to locate/replace the output URLs generated by the Divi video module for YouTube. Output source code should make the links appear similar to the below code.
-->
<h1>YouTube Related Links+More URL Replacer for Divi (jQuery)</h1>
<h2>[Divi 2.6.4 for WordPress]</h2>
<p>Add JS code to Divi > Theme Options > Integration tab > "ADD CODE TO THE &lt;HEAD &gt; OF YOUR BLOG"</p>

<!-- Begin Video Module Output Demo -->
<div class="fluid-width-video-wrapper" style="text-align:center;">
<iframe width="853" height="480" src="https://www.youtube.com/embed/l6nzDl0f84w?feature=oembed&wmode=opaque&rel=0&modestbranding=1&autoplay=0&showinfo=0&controls=2&iv_load_policy=3" frameborder="0" allowfullscreen="" id="fitvid0"></iframe>
</div>
<!-- End Video Module Output Demo -->
              
            
!

CSS

              
                body {
  background-color: #000;
}

h1,
h2,
p {
  color: #fff;
  text-align: center;
}

h1 {
  font-family: Montserrat;
  font-weight: 300;
}

h2, p {
  font-family: 'Open Sans';
  font-weight: 100;
}

p {
  font-size: 14px;
  font-style: italic;
}
              
            
!

JS

              
                //<script type="text/javascript">
(function($) {
  $(window).load(function() {
    $('.fluid-width-video-wrapper').each(function() {
    var src = $(this).find('iframe').attr('src');
    $(this).find('iframe').attr('src', src + '&rel=0&modestbranding=1&autoplay=0&showinfo=0&controls=2&iv_load_policy=3');
    });
  });
})(jQuery);
//</script>

// Remove the // comment tags preceeding <script> and </script> after pasting code in the proper Divi settings area.

// YouTube Parameters
// "rel=0" Removes related videos at end
// "modestbranding=1" Remove YT logo from control bar
// "autoplay=0" Disable autoplay, =1 to Enable
// "showinfo=0" Strips video title
// "controls=2" Show player controls
// "iv_load_policy=3" Removes video annotations
// "color=red" Not listed in above code. Changes the progress bar color. ONLY 'red' or 'white' values are currently available.

// Personalized watermark will only show when 'modestbranding' is not enabled and 'iv_load_policy' value is removed.
              
            
!
999px

Console