# Responsive embeds

**URL:** <https://forum.pinegrow.com/t/responsive-embeds/4358>\
**Category:** Tips & Tricks\
**Created:** [July 17, 2020, 7:31am UTC](https://forum.pinegrow.com/t/responsive-embeds/4358 "2020-07-17T07:31:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [July 17, 2020, 7:31am UTC](https://forum.pinegrow.com/t/responsive-embeds/4358/1 "2020-07-17T07:31:41Z")

</div>

I haven’t seen this mentioned anywhere so thought I would share.

If you want things like videos and other embeds to resize automatically, you need to enable responsive embeds: [https://developer.wordpress.org/block-editor/developers/themes/theme-support/](https://developer.wordpress.org/block-editor/developers/themes/theme-support/)

The code specifically for this is:

`add_theme_support( 'responsive-embeds' );`

It needs to go in your functions (or in the case of Pinegrow custom.php) file.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [July 17, 2020, 8:08am UTC](https://forum.pinegrow.com/t/responsive-embeds/4358/2 "2020-07-17T08:08:22Z")

</div>

Excellent tip 🙂

note: this option is set by default in the **Starter Theme 2**

> <https://github.com/Pinegrow/PGWPBootstrap4StarterTheme/blob/3c6545377a778c9b73fc5bcdcbdb14ac0208c520/inc/custom.php>

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [July 17, 2020, 8:10am UTC](https://forum.pinegrow.com/t/responsive-embeds/4358/3 "2020-07-17T08:10:45Z")

</div>

And if you want to discover more about the Starter Theme 2, here is something VERY useful:

> **[Learn WordPress Development with the Pinegrow Starter Theme 2 | Pinegrow Web...](https://docs.pinegrow.com/tutorials/learn-wordpress-development-with-the-pinegrow-starter-theme-2/)**
>
> The WordPress Starter Theme 2 (ST2) is a framework for quickly developing your own custom WordPress themes. It was first introduced in 2017 as a free project, open for contributions.

---

<div class="post-metadata">

**Author:** ![pugh](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pugh](https://forum.pinegrow.com/u/pugh)\
**Post date:** [July 17, 2020, 3:38pm UTC](https://forum.pinegrow.com/t/responsive-embeds/4358/4 "2020-07-17T15:38:47Z")

</div>

Cool, thanks. I still need to check out Starter Theme 2.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [July 17, 2020, 3:55pm UTC](https://forum.pinegrow.com/t/responsive-embeds/4358/5 "2020-07-17T15:55:44Z")

</div>

With our process, In 10 minutes, it’s all set up on your computer.  
What else!
