# YouTube Hide Related Videos \[BETA]

{% hint style="warning" %}
**BETA note**\
While this version works perfectly in our testing, we have reason to believe there is an underlying race condition occurring with the YouTube player lib. If you encounter any unexpected behaviors, please let us know in the forum ( link at top ).&#x20;
{% endhint %}

When an embedded YouTube video is paused or finished playing, a series of "related videos." are shown. These often detract from your Webflow site's elegant design, and by default they can show unrelated or even a competitor's videos.

It's not ideal...&#x20;

<figure><img src="/files/KHcMEcNjhlDs8whJiYzc" alt=""><figcaption></figcaption></figure>

This SA5 attribute blocks the play and stop views with an overlay that can make this UX more elegant. At this point it is very simple.

| Video paused overlay             | Video finished overlay           |
| -------------------------------- | -------------------------------- |
| ![](/files/CpsiNbmaXH8ApetNeEyJ) | ![](/files/FxMe6OPia3CLYHySgSKH) |

{% hint style="success" %}
It is possible to change the color and the icon however it requires knowledge of CSS. See our [Styling Options](/sa5-video/youtube-hide-related-videos-beta/styling-options.md) for details.&#x20;
{% endhint %}

## Demo <a href="#usage-notes" id="usage-notes"></a>

{% embed url="<https://video-player-control.webflow.io/youtube/hide-related>" %}

## Usage Notes <a href="#usage-notes" id="usage-notes"></a>

{% hint style="info" %}
Currently this feature works with **Webflow's YouTube video element** specifically. Make sure you are using the right one.&#x20;

![](/files/rCKGkVRUdxbxE7Kk4eTh)
{% endhint %}

Simply add a custom attribute of `wfu-youtube-norel` to any YouTube video on your page.&#x20;

## Getting Started ( NOCODE ) <a href="#getting-started-nocode" id="getting-started-nocode"></a>

### STEP 1 - Add the Library <a href="#step-1---add-the-library" id="step-1---add-the-library"></a>

First, **add the library** as detailed in [Quick Start](/sa5-video/quick-start.md).&#x20;

### STEP 2 - Apply `wfu-youtube-norel` to any YouTube Player Elements you want it to affect <a href="#step-2---apply-wfu-data-poster-url-to-the-background-videos" id="step-2---apply-wfu-data-poster-url-to-the-background-videos"></a>

See above for details.

## Credits

This attribute is based on the work of Maximillian Laumeister who first [published this technique](https://www.maxlaumeister.com/articles/hide-related-videos-in-youtube-embeds/) in May 2018.&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/sa5-video/youtube-hide-related-videos-beta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
