• 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

Glam Theme – Front Page Remove Sidebar

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 › Glam Theme – Front Page Remove Sidebar

This topic is: resolved

Tagged: front page, Full-width Layout

  • This topic has 9 replies, 2 voices, and was last updated 8 years, 3 months ago by Bren Pace.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • March 18, 2017 at 7:18 am #203294
    Bren Pace
    Participant

    Hello. I'm working with the Glam theme for a client of mine and she wants to have a few of her recent post shown on the homepage but not the sidebar. I think I can remove the coding for the sidebar but didn't want to screw the pooch and do it without a pro's opinion.

    She would, however, like the sidebar on the blog pages.

    Can anyone help please?

    http://sueglashower.com/
    March 18, 2017 at 7:23 am #203295
    Brad Dalton
    Participant

    Try this code


    Tutorials for StudioPress Themes.

    March 18, 2017 at 7:25 am #203296
    Bren Pace
    Participant

    By adding this

    //* Remove content/sidebar layout
    genesis_unregister_layout( 'content-sidebar' );

    Will also remove it from the blog pages? Or would this just go into the front-page?

    March 18, 2017 at 7:33 am #203299
    Brad Dalton
    Participant

    Add this in front-page.php after the opening <?php tag

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    

    Tutorials for StudioPress Themes.

    March 18, 2017 at 7:39 am #203300
    Bren Pace
    Participant

    You are the bomb-diggity, Brad! Thanks so much!

    March 18, 2017 at 7:50 am #203301
    Bren Pace
    Participant

    I found this in the front-page.php

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );

    Can I just alter that second part?

    March 18, 2017 at 7:54 am #203302
    Brad Dalton
    Participant

    Sure can or replace it.


    Tutorials for StudioPress Themes.

    March 18, 2017 at 7:56 am #203303
    Bren Pace
    Participant

    AWESOME! It worked! Thank you!

    March 18, 2017 at 8:06 am #203304
    Brad Dalton
    Participant

    You're welcome. Follow me on Facebook if you want more tips.


    Tutorials for StudioPress Themes.

    March 18, 2017 at 8:07 am #203305
    Bren Pace
    Participant

    I gotcha! 🙂

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Glam Theme – Front Page Remove Sidebar’ is closed to new 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