• 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

Header Image/Slider

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 › Header Image/Slider

This topic is: resolved

Tagged: After Header, front page, full width

  • This topic has 6 replies, 3 voices, and was last updated 8 years, 1 month ago by taylorjkeen32.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 23, 2017 at 9:46 am #211798
    taylorjkeen32
    Participant

    I'm using eleven40 Pro. My ultimate goal is to have a main image/slider/whatever you want to call it on the front page directly below the header. As of now I have it but it's on every page and the header/menu covers the top part of the portion (until it switches to the mobile menu mode then it works properly). I've messed around with the media classes and still can't get it to work.

    1. What do I need to do to get the image to ALWAYS start at the bottom of the header and not be covered by it?

    2. How do I get it to only be on a certain page?

    If there's an easier way to do it than what I've done so far, I'm open to suggestions and recommendations.

    Thanks

    http://taylorjkeen.com
    September 23, 2017 at 9:49 am #211799
    Victor Font
    Moderator

    How/where did you insert the slider? Normally, you would place it in the first widget area on the front page.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 23, 2017 at 10:26 am #211800
    taylorjkeen32
    Participant

    It's not techinically a slider. I'm just going for that effect...a large image that spans the whole screen and comes right after the header. Right now it's done with this code:

    //* Remove Tagline Area From Before Content Sidebar Wrap
    remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_seo_site_description' );

    //* Hook before content sidebar wrap widget area globally
    add_action( 'genesis_after_header', 'wpsites_image_after_header' );

    function wpsites_image_after_header() {

    echo '<div class="image-after-header">';

    echo '';

    echo '</div>';

    }

    If I just use a widget as you say, is there a way to make that span the whole width of screen (not just container) and butt up against bottom of header?

    September 23, 2017 at 1:49 pm #211806
    Brad Dalton
    Participant

    Seems like you have this fixed. You can add a conditional tag in the code of you only want it to execute on the front page.

    This code shows you how to add the conditional tag in your existing code so the image only displays on the front page.

    Or

    You can add the code in your front-page.php file without the conditional tag.


    Tutorials for StudioPress Themes.

    September 23, 2017 at 6:04 pm #211814
    taylorjkeen32
    Participant

    Thank you guys. I've got the part about only on one page figured out. But I still haven't determined why the image positioning is different when the header/menu is full vs mobile. If I add a top-margin to the image then when it switches to mobile there's a blank spot for the margin.

    September 23, 2017 at 6:18 pm #211815
    Brad Dalton
    Participant

    Check your PHP code as you have a problem in your HTML with a div tag.


    Tutorials for StudioPress Themes.

    September 23, 2017 at 7:41 pm #211821
    taylorjkeen32
    Participant

    Thank you both so much. I figured out another way and it's working. This thread/ticket can be closed/marked completed.

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