Title: Hardcoded youtube size
Last modified: May 31, 2018

---

# Hardcoded youtube size

 *  Resolved [mskogly](https://wordpress.org/support/users/mskogly/)
 * (@mskogly)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-youtube-size/)
 * According to this thread [https://wordpress.org/support/topic/disable-shortcode-modules/](https://wordpress.org/support/topic/disable-shortcode-modules/)
   it should be possible to make youtube videos responsive by adding this [https://jetpack.com/support/responsive-videos/](https://jetpack.com/support/responsive-videos/)
   to functions.php.
 * But when copypasting in a youtube url (not using shortcode, simply pasting in
   the url), this is what is generated by jetpack:
 * `<div class="jetpack-video-wrapper"><span class="embed-youtube" style="text-align:
   center; display: block;"><iframe class="youtube-player" type="text/html" src="
   https://www.youtube.com/embed/uzWfIk0z4z8?version=3&rel=1&fs=1&autohide=2&showsearch
   =0&showinfo=1&iv_load_policy=1&wmode=transparent" allowfullscreen="true" style
   ="border: 0px; display: block; margin: 0px; width: 640px; height: 390px;" data-
   ratio="0.609375" data-width="640" data-height="390"></iframe></span></div>`
 * As you can see that width and height is hardcoded. Any way to not have this happen?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhardcoded-youtube-size%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Gemma Evans](https://wordpress.org/support/users/gemmaevans/)
 * (@gemmaevans)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-youtube-size/#post-10345815)
 * Hi [@mskogly](https://wordpress.org/support/users/mskogly/),
 * I suspect this is being caused by the code for the responsive video:
 * Could you please remove that code to see if that changes what you’re seeing?
 * This will help us test whether responsive videos are already supported by your
   theme, which will remove the need to include additional code for this feature.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Hardcoded youtube size’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gemma Evans](https://wordpress.org/support/users/gemmaevans/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-youtube-size/#post-10345815)
 * Status: resolved