• 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 Structural Wrap on the homepage (only)

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 Structural Wrap on the homepage (only)

This topic is: not resolved

Tagged: structural wrap

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 2 months ago by Tim Jensen.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 3, 2015 at 2:18 pm #143099
    webmestre-cgmatane
    Member

    Hello, I'm just starting to use with Genesis on my projets!

    I would like to customize the Structural Wraps (in my child function.php) but only for the custom homepage of my project.

    In fact, i would like to remove the <div class="wrap"> around my genesis_loop / .site-inner, but only for the homepage template and another spectific template. I would like to keep it this wrap on my defaut theme tho.

    What is the best way to do this? Is it possible?

    Right now in my child theme functions.php, i put my inner and footer wrap into comment, but this change touch every pages in the project.

    // Structural Wraps
    	add_theme_support( 'genesis-structural-wraps', array(
    		'header',
    		'nav',
    		'subnav',
    		/*'inner',*/
    		'footer-widgets',
    		/*'footer'*/
    	) );

    Thx for the help!
    Sorry for my english!

    March 3, 2015 at 10:40 pm #143142
    Genesis Developer
    Member

    I did not test the code but you can try this way:

    // Structural Wraps
    add_action('genesis_meta', 'setting_site_structural_wrap');
    function setting_site_structural_wrap(){
      $default_arr = array('header', 'nav', 'subnav', 'footer-widgets');
      
      if( ! is_home() || ! is_front_page() ) //Excluding home or static front page 
        $default_arr = array_merge( $default_arr, array( 'inner', 'footer' ));
       
      add_theme_support( 'genesis-structural-wraps', $default_arr );
    }

    For more conditional tags we can see the Codex


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 3, 2016 at 4:22 pm #175492
    Tim Jensen
    Member

    The code above worked for me. Thanks!

  • 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

© 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