• 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

Add structural wrap to Genesis Sample 2.3.0

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 › Retired StudioPress Themes › Add structural wrap to Genesis Sample 2.3.0

This topic is: not resolved

Tagged: header, Nav Primary, structural, wrap

  • This topic has 0 replies, 1 voice, and was last updated 1 year, 9 months ago by baggi-t.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • August 3, 2023 at 4:21 am #507597
    baggi-t
    Participant

    I'm using Genesis Sample 2.3.0 (old I know but I like it) on a project and I want to add a structural wrap around the header and nav-primary so I can place a background img that spans both. Can anyone advise me on the code I need in my functions.php to achieve this? See my project theme at: https://graphicviolence.co.uk/workbook/

    https://graphicviolence.co.uk/workbook/wp-content/uploads/sites/12/2023/08/Screenshot-2023-08-03-at-10.56.21.jpg

    Something along the lines of this but with different hooks:

    // Add div.wrap inside of div#inner
    function child_before_content_sidebar_wrap() {
    echo '<div class="new-wrap">';
    }
    add_action( 'genesis_before_content_sidebar_wrap', 'child_before_content_sidebar_wrap' );

    function child_after_content_sidebar_wrap() {
    echo '</div><!-- end .wrap -->';
    }
    add_action( 'genesis_after_content_sidebar_wrap', 'child_after_content_sidebar_wrap' );

    https://graphicviolence.co.uk/workbook/
  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

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