# Customize video embeds

**URL:** <https://forum.getkirby.com/t/customize-video-embeds/18771>\
**Category:** Questions\
**Tags:** v3\
**Created:** [July 10, 2020, 6:44pm UTC](https://forum.getkirby.com/t/customize-video-embeds/18771 "2020-07-10T18:44:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanie](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sanie/32/8859_2.png) [@sanie](https://forum.getkirby.com/u/sanie)\
**Post date:** [July 10, 2020, 6:44pm UTC](https://forum.getkirby.com/t/customize-video-embeds/18771/1 "2020-07-10T18:44:07Z")

</div>

Hi!

I would like to add custom options to my vimeo embed src URL, to get something like the following:

`<iframe src="https://player.vimeo.com/video/00000000?color=ffffff&amp;title=0&amp;byline=0&amp;portrait=0"</iframe>`

I have this in my template file (using the Kirby 3 Embed plugin):

```
  <?php if($embed = $page->embed()->toEmbed()): ?>
    <div class="video-wrapper">
      <?= video($embed->url()) ?>
    </div>
  <?php endif ?>

```

I am not sure of the syntax to add `vimeo` options that will be used as query params in the embed URL. (I’m looking to set byline and title to 0, and color to ‘ffffff’).

I have seen similar questions (like [this one for Kirby 2](https://forum.getkirby.com/t/customize-vimeo-embeds/3738)) but I am not sure how to implement this in my case.

Thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [July 10, 2020, 7:19pm UTC](https://forum.getkirby.com/t/customize-video-embeds/18771/2 "2020-07-10T19:19:49Z")

</div>

You can pass the options like this:

```auto
<?= video('https://vimeo.com/425396315',[

    'vimeo' => [
        'portrait'=> 1,
        'color' => '000000',
        'title' => 0,
        'byline' => 0,
    ]

]) ?>

```

This allows you to also set options for YouTube videos, by using the `youtube` key.

---

<div class="post-metadata">

**Author:** ![sanie](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/sanie/32/8859_2.png) [@sanie](https://forum.getkirby.com/u/sanie)\
**Post date:** [July 10, 2020, 8:36pm UTC](https://forum.getkirby.com/t/customize-video-embeds/18771/3 "2020-07-10T20:36:51Z")

</div>

So simple — works perfectly, thank you!
