• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Can't get youtube embeds to be full width

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't get youtube embeds to be full width

This topic is: resolved

Tagged: full width, iframe, Width, youtube

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by iamzeus.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 18, 2014 at 10:34 pm #134871
    iamzeus
    Member

    Why I cant get youtube iframe embeds to be full width here:

    http://bit.ly/1ov695s

    I simply dont get it and it's driving me nuts watching the videos in such a small iframe

    December 19, 2014 at 7:32 pm #134936
    Tom
    Participant

    Your embeds are defaulting to 500px wide. You can change this with tweaks to the embed code.
    http://codex.wordpress.org/Embeds

    Specify the desired width using a shortcode like this:
    [embed width="600"]http://www.youtube.com/watch?v=fdJc1_IBKJA[/embed]

    600px matches the top video on your page. Try 700px to match your content container.
    Height will be automatically proportional if not specified in the shortcode.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 22, 2014 at 12:18 pm #135068
    iamzeus
    Member

    Thanks a lot

    December 23, 2014 at 6:10 pm #135217
    iamzeus
    Member

    Adding this to functions.php

    // Embed width
    if ( ! isset( $content_width ) ) $content_width = 730;

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble