• 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

Image span full width of 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 › Design Tips and Tricks › Image span full width of page

This topic is: not resolved

Tagged: header, image

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 5 months ago by rlegrys.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 29, 2014 at 9:32 pm #112051
    rlegrys
    Member

    Hi,
    I have an image that I would like to place on my homepage just below the secondary nav menu. It is a banner that would span the entire width of my page (including the sidebar area). Is there a way to put an image above where the sidebar starts? The site is http://www.healthcoachsolutions.net

    Thank you,
    Rob

    http://www.healthcoachsolutions.net
    June 29, 2014 at 9:37 pm #112053
    nunotmp
    Member

    you can use something like this.

    
    add_action( 'genesis_after_header', 'wpz_do_banner' );
    function wpz_do_banner() {
    echo '<div class="full-width-banner">;
            echo '<img src="path/to/image.png" alt="Banner Image" />';
    echo '</div>;
    }
    

    You can then add some css to expand .full-width-banner

    
    .full-width-banner {
    width: 100%;
    }
    

    You may have to tweak the code but it should get you started. The php should go in your functions.php and the css goes in your style.css file.


    Genesis Child Themes – Follow Me

    June 29, 2014 at 10:04 pm #112056
    rlegrys
    Member

    Thanks for the fast response nunotmp. Unfortunately, there must be something wrong with this code. When I put it into my functions.php, the site locks up. Nothing works at all (no dashboard or pages). Any idea what might be wrong in the code (I did change the path/to/image.png to point to the image).

    Regards,
    Rob

  • 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