• 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

Removing main-area from front 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 › Removing main-area from front page

This topic is: not resolved

Tagged: front-page.php, hooks, minimum

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 2 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 5, 2013 at 8:45 am #77185
    JoakimB
    Member

    Hi!

    I'm working with a customisation of the Minimum Pro Theme and I have a question.
    Bear in mind that this is my first time working with Genesis, so my question might have been answered already and I just couldn't find it. I may also be way off concerning the way to use hooks and filters properly.

    I'm trying to set up a front page with just a header, a footer and 8 widget areas of custom size and positioning.

    What I'm wondering is therefore:

    Is there an easy (relatively) way of removing the <div class="content-sidebar-wrap">-element with all of its content.

    I've successfully removed the loop and the sidebar, but the div still appears and messes up my layout.
    What I've done is: In my front-page.php file I've added remove_action( 'genesis_loop', 'genesis_do_loop' ); and remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); within an if ( is_home() )-statement.

    Where should I go from here? Any suggestions or comments on my work so far?

    Oh, and I've managed to add all the widget areas with the add_action( 'genesis_before_content_sidebar_wrap' ) hook thingy.

    I may also have posted this in the wrong forum section… my bad, sorry.

    Thanks in advance,
    Joakim

    http://tankesmedjantiden.se.preview.binero.se
    December 5, 2013 at 10:09 am #77229
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/flexible-responsive-widgets-template-for-genesis/


    Tutorials for StudioPress Themes.

    December 5, 2013 at 10:24 am #77232
    JoakimB
    Member

    So basically what you would do is replacing the loop with widgets, but keeping them inside of the content-sidebar-wrap?

    December 5, 2013 at 2:47 pm #77278
    Brad Dalton
    Participant

    You can use any layout you like and change any of the hooks in the template.

    I've simply added a full width layout however this can be changed using PHP code or you can change the width using CSS using the custom body class generated by the template.

    You can even add the loop after the widgets or add a grid loop after the widgets simply by pasting code in the template.

    Its highly flexible.


    Tutorials for StudioPress Themes.

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

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