Use privacy aware embed options for YouTube & Vimeo (#1964)
This commit is contained in:
parent
dbec2b9975
commit
8fd8a0ff3d
2 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,8 @@
|
||||||
<!-- Courtesy of embedresponsively.com //-->
|
<!-- Courtesy of embedresponsively.com //-->
|
||||||
<div class="responsive-video-container">
|
<div class="responsive-video-container">
|
||||||
{% if video_provider == "vimeo" %}
|
{% if video_provider == "vimeo" %}
|
||||||
<iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
<iframe src="https://player.vimeo.com/video/{{ video_id }}?dnt=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
|
||||||
{% elsif video_provider == "youtube" %}
|
{% elsif video_provider == "youtube" %}
|
||||||
<iframe src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
<iframe src="https://www.youtube-nocookie.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -173,7 +173,7 @@ And then drop-in the feature row include in the body where you'd like it to appe
|
||||||
|
|
||||||
## Responsive Video Embed
|
## Responsive Video Embed
|
||||||
|
|
||||||
Embed a video from YouTube or Vimeo that responsively sizes to fit the width of its parent.
|
Embed a video from YouTube or Vimeo that responsively sizes to fit the width of its parent. To help with GDPR compliance, the theme is using the privacy enhanced version of both providers out of the box.
|
||||||
|
|
||||||
| Parameter | Required | Description |
|
| Parameter | Required | Description |
|
||||||
| ---------- | ------------ | ---------------------------------------------------------- |
|
| ---------- | ------------ | ---------------------------------------------------------- |
|
||||||
|
|
Loading…
Reference in a new issue