• 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

Minimum Theme: Structural Wraps

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 › Minimum Theme: Structural Wraps

This topic is: not resolved

Tagged: home page, Minimum theme, structure

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 2 months ago by sandy.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 11, 2013 at 10:49 am #11253
    mikemahony
    Member

    Hi, I am working with the Minimum theme and have changed a few things on the home page. I've added two "call to action" widgets--one above the social icons and one below the social icons. The client wanted to remove the blog posts from the bottom of the home page, so I simply added:

    remove_action('genesis_loop', 'minimum_grid_loop_helper');

    That removed the blog posts, but it created a large amount of whitespace below the second call to action widget and above the footer area. What I wanted to do was conditionally remove the "inner" wrap on the home page only.

    I tried:

    if ( is_home() ) {

    /** Add support for structural wraps */
    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'footer-widgets',
    'footer'
    ) );

    }

    else

    {

    /** Add support for structural wraps */
    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'inner',
    'footer-widgets',
    'footer'
    ) );

    }

    But it always defaults to the else. It is as though it is not recognizing the home page as the home. So my questions:

    Is there a better way to conditionally remove the "inner" from the home page? If so, how?
    Why is my code defaulting to the else?

    The site is currently located at http://72.41.80.181/

    Thanks in advance for any help you can give!

    Mike

    January 21, 2013 at 4:37 pm #13583
    Diane Kinney
    Member

    Mike, I don't think this approach will work.  My understanding of the structural wrap function is it will pull divs out of the wrap, but not control whether they exist or not.

    This is technically not a best practice, but you can hide that div on the home page with this css:

    .home .minimum #inner {

    display: none

    }

    To be more technically correct, you would want to write code either in your functions file or your page template that removes that div, a bit more of an involved process.

     

     

     


    Need more help? Find me on Twitter @gidgetthegeek

    March 6, 2013 at 7:49 am #24534
    sandy
    Member

    Hi  There

    Please check my code it will work for you .
    if ( is_home() ) {
    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'footer-widgets',
    'footer'
    ) );
    }

    elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){

    add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'nav',
    'subnav',
    'inner',
    'footer-widgets',
    'footer'
    ) );}

     

    Regards

    Sandeep

     

     

     

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

© 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