• 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

force full-width on is_paged for blog page

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 › force full-width on is_paged for blog page

This topic is: not resolved

Tagged: genesis_pre_get_option_site_layout

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 23, 2019 at 6:48 am #491316
    mmjaeger
    Member

    Hello
    My home page just shows the blog posts - on the home-page (1st page) I'd like to show the sidebar with some widget content - on the following pages however I'd like to have the page full width with no sidebar

    how can I do this - what would be the correct hook to add the filter /

    Thanks

    May 23, 2019 at 7:20 am #491318
    Brad Dalton
    Participant

    1. Use something like this in functions.php

    add_filter( 'genesis_pre_get_option_site_layout', 'change_layout');
    function change_layout( $opt ) {
    if ( is_front_page() ) {
    $opt = 'full-width-content';
    return $opt;
        }
    }
    

    2. You can also add a ternary or else if statement.

    3. You'll also need to use the correct conditional tags.


    Tutorials for StudioPress Themes.

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