• 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

Why custom content isn't inside "site-inner" div

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 › Why custom content isn't inside "site-inner" div

This topic is: not resolved

Tagged: actions, structural wraps, structure, templates

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by Earthling.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 26, 2015 at 10:39 am #153661
    Earthling
    Member

    Hi all,

    I'm currently building a custom front-page.php template, using the following method.

    add_action( 'source_front_page', 'my_content_one', 1 );
    function my_content_one() {
        // Some content
    }
    
    add_action( 'source_front_page', 'my_content_two', 2 );
    function my_content_two() {
        // Some content
    }
    
    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'footer-widgets', 'footer' ) );
    
    get_header();
    do_action( 'source_front_page' );
    get_footer();

    I'm not able get both area's of content inside of the default site-inner div. It makes sense for all page content to be inside "site-inner".

    I've removed the structural wraps for site-inner as I wanted full width backgrounds on my content.

    I haven't been developing with genesis for a long time, has anyone any insights into my problem?

    http://localhost
    May 26, 2015 at 10:57 am #153662
    Genesis Developer
    Member

    Replace the whole code by this one

    add_action( 'genesis_before_content', 'my_content_one', 1 );
    function my_content_one() {
        // Some content
    }
    
    add_action( 'genesis_before_content', 'my_content_two', 2 );
    function my_content_two() {
        // Some content
    }
    
    genesis();

    For genesis action see this http://genesistutorials.com/visual-hook-guide/


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

    May 26, 2015 at 1:46 pm #153703
    Earthling
    Member

    Hi Genesis Developer, thanks for chiming in.

    I actually don't want to do it this way on my front-pape template, I won't be using the loop so for me I'd like to control it the way I have already built it. The question was more about why only the first add_action was going into site-inner and not the second. I'd like to better understand why.

    If you think I shouldn't be doing it this way or have a reason why I should build it as you have prescribed I'd be really interested to know why.

    Thanks again,
    John

  • 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