• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Turning Off Related YouTube Videos Not Working

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Turning Off Related YouTube Videos Not Working

This topic is: not resolved

Tagged: embed, related videos, youtube

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by webauthor.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 15, 2017 at 12:45 pm #201250
    webauthor
    Member

    I'm using the Altitude Pro Theme and running the latest version of WP and Genesis.

    I'm trying to add a youtube video using one of the home page text widgets. The code I'm inserting is this:

    <div style="position:relative;height:0;padding-bottom:56.25%"><iframe src="https://www.youtube.com/embed/o9niqu4W6EU?rel=0?ecver=2" width="640" height="360" frameborder="0" style="position:absolute;width:100%;height:100%;left:0" allowfullscreen></iframe></div>

    The video displays fine, the problem is that rel=0 is being ignored. We don't want suggested or related youtube videos to be displayed after watching the video.

    Is anyone else having this same problem? I've used this same code on a page, and we're still seeing related videos after the youtube video stops playing.

    Thanks

    February 15, 2017 at 1:52 pm #201254
    Andykev
    Participant

    Use this code:
    <iframe width="1200" height="675" src="https://www.youtube.com/embed/o9niqu4W6EU?rel=0" frameborder="0" allowfullscreen></iframe>

    Replace. It works fine. Adjust width and height as you need.

    February 15, 2017 at 1:58 pm #201255
    webauthor
    Member

    Awesome. It worked. Thank you.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble