• 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

How to Force Full-Width Blog Posts in Altitude Pro

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 › How to Force Full-Width Blog Posts in Altitude Pro

This topic is: not resolved

Tagged: Altitude Pro, Sidebar

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 9 months ago by ᴅᴀᴠɪᴅ.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 23, 2017 at 4:07 pm #208202
    mattdustin
    Participant

    Hello,

    I'm trying to figure out how to make any blog post a full-width page whenever someone reads it, but keep my sidebar everywhere else.

    I've figured out how to hide the sidebar, but the content is still smashed over to one side as if the sidebar was still there.

    Any ideas?

    http://www.mattdustin.com/blog
    June 23, 2017 at 4:16 pm #208205
    ᴅᴀᴠɪᴅ
    Member

    If you just want to remove the sidebar from some specific blog posts, you can just change the layout of any post or page from within with post edit screen itself. Choose full width for the posts you want.

    If you want this for EVERY post, automatically. Then you'd need to add some code to override the settings.

    So to do this you'd add this code to your functions.php file...

    //* Change layout for single posts
    add_filter( 'genesis_site_layout', 'themeprefix_single_layout' );
    function themeprefix_single_layout() {
        if( is_singular('post') ) {
            return 'full-width-content';
        }
    }

    This will make sure that every single post has a full width layout and therefore no sidebars.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    June 23, 2017 at 4:21 pm #208208
    mattdustin
    Participant

    Perfect, that code worked great. Thanks so much!

    June 23, 2017 at 4:25 pm #208209
    ᴅᴀᴠɪᴅ
    Member

    No worries!


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

  • 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

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