• 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

Different max embed width on page without sidbar

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 › Different max embed width on page without sidbar

This topic is: not resolved

Tagged: embed, Sidebar, Width

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 9 months ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 10, 2013 at 3:01 pm #61762
    Tal
    Member

    I'm using the following code in my function file, mostly to auto size youtube embeds, but on pages where I have no sidebar I'd like to have a wider embed with, can someone help me out with code to achieve this?

    function mycustom_embed_defaults($embed_size){
        if( is_single() ){ // If displaying a single post
            $embed_size['width'] = 600; // Adjust values to your needs
            $embed_size['height'] = 600;
        }
    September 11, 2013 at 4:54 am #61872
    Brad Dalton
    Participant

    Link to your site please with the fill width layout.


    Tutorials for StudioPress Themes.

    September 11, 2013 at 6:27 am #61895
    Tal
    Member

    My theme is modified from the Backcountry theme.

    the width of the full page layout content area is 910

    September 15, 2013 at 1:22 pm #62658
    Tal
    Member

    So nobody has any suggestions? Surely this is possible?

    September 16, 2013 at 4:24 am #62795
    Brad Dalton
    Participant

    Hello Tal

    I wrote about this recently and also use the solution on my own site however i would like to look at the page in question so i can tailor the code to your specific needs.

    That way it will work the first time as i can also test it locally on your theme.

    Please link to the page in question. Thanks


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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