• 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

Custom Full Width Layout for Posts

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 › General Discussion › Custom Full Width Layout for Posts

This topic is: not resolved

Tagged: full width content, genesis_pre_get_option_site_layout, genesis_site_layout

  • This topic has 8 replies, 2 voices, and was last updated 6 years, 2 months ago by Brad Dalton.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 19, 2019 at 12:05 pm #493045
    randit
    Member

    Hello:

    I am using the Infinity Pro theme and the theme came with a custom full width layout. I'd like to apply this full width layout to all blog posts. How would I accomplish this?

    Thanks in advance for your help!

    August 20, 2019 at 1:37 am #493056
    Brad Dalton
    Participant

    You can add 1 line of PHP to a single.php file

    or

    Use a custom filter function with a conditional tag for single posts which is

    is_singular('posts'))
    

    Tutorials for StudioPress Themes.

    August 20, 2019 at 10:19 am #493059
    randit
    Member

    Hi!

    Thank you for the response and help!

    I ctreated a single.php file and added the one line of code is_singular('posts')) to the child theme and the code appears not the post content on the posts. What did I do wrong?

    Thanks!

    August 20, 2019 at 10:26 am #493060
    Brad Dalton
    Participant

    Try this

    add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
    

    Tutorials for StudioPress Themes.

    August 20, 2019 at 10:42 am #493061
    randit
    Member

    Hi:

    That did not work either. Should I be adding <?php before the code?

    August 20, 2019 at 10:45 am #493062
    Brad Dalton
    Participant
    <?php
    
    
    
    add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
    
    
    genesis();
    

    Make sure this is the only code in the file named single.php and use File Manager in cPanel or a code editor and FTP to upload the file.


    Tutorials for StudioPress Themes.

    August 21, 2019 at 10:16 am #493077
    randit
    Member

    Hi!

    Shoot... that is not working either. I added just the above to the single.php file via FTP.

    I am wondering if my explanation wasn't good! 🙂 The Infinity Pro has an extra wide full width layout setting is 1280 pixels wide with instructions found here: https://my.studiopress.com/documentation/infinity-pro-theme/extras/extra-wide-full-width-layout/ but it only tells you how to manually make a post or page the extra full width. I am going to importing over 200 blog posts and need them all to be the extra full width.

    I hope this helps. Thanks again for your help!

    August 22, 2019 at 4:57 am #493094
    Brad Dalton
    Participant

    Add this to the file as well

    add_filter( 'body_class', 'full_body_class' );
    function full_body_class( $classes ) {
    
    	$classes[] = 'full';
    
    	return $classes;
    
    }
    

    Tutorials for StudioPress Themes.

    August 22, 2019 at 8:23 am #493105
    Brad Dalton
    Participant

    Here's the full tutorial which includes the template for single posts.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ 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

© 2025 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