• 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

Remove Primary Sidebar Home Page Only Daily Dish

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 › Remove Primary Sidebar Home Page Only Daily Dish

This topic is: not resolved

Tagged: Daily Dish, primary sidebar

  • This topic has 5 replies, 3 voices, and was last updated 8 years, 8 months ago by cyanoorange.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 11, 2015 at 1:38 pm #140504
    jalodico
    Member

    I am trying to remove the primary sidebar from the home page only in Daily Dish. I was able to remove the side bar using:

    remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );

    but I can't figure out how to get the primary content to fill the space.

    Any help would be appreciated. I didn't post the site because it isn't live yet. Just getting initial design together.

    Thanks,

    Jim

    February 11, 2015 at 4:21 pm #140531
    marybaum
    Participant

    Try this:

    //* Force full-width-content layout setting
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    You might also want to look at other options on that same page of snippets:

    http://my.studiopress.com/snippets/admin-management/#force-layout-settings

    Hope that helps!


    Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀

    February 12, 2015 at 11:07 am #140615
    jalodico
    Member

    Thanks Mary.

    I tried that in a couple of spots but it doesn't seem to be working. In the front-page.php I replaced the force sidebar line below with the code you gave me above.

    // Force content-sidebar layout setting
    add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );

    Instead of making it full width, it moved the sidebar to my default setting (sidebar-content) instead of removing it altogether.

    Just a note, I don't want a true full screen layout. I want to keep the container so that a background image shows.

    Thanks.

    February 13, 2015 at 10:05 am #140707
    jalodico
    Member

    I think I got it. I added the following at the top of the front-page.php and changed the code as suggested above:

    add_filter( 'genesis_pre_get_option_site_layout', 'child_do_layout' );
    function child_do_layout( $opt ) {
    $opt = 'full-width-content'; // You can change this to any Genesis layout
    return $opt;
    }

    Does that make sense?

    March 17, 2015 at 6:27 am #144715
    cyanoorange
    Participant

    Hi ... seems I have the same problem. Means: at the frontpage I would like to have full-witdh and on other pages I would like to have a primary sidebar on the right. Both solutions above doesnt work for me ... Would be great, if there would be an answer.
    Thanx

    March 17, 2015 at 6:40 am #144718
    cyanoorange
    Participant

    My first work around is the following:
    front-page.php
    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );

    style.css
    .home .content {
    float: right;
    width: 100%;
    }

    Is there a way to make it better ?

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