• 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 Under Header

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 Under Header

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 8 years, 7 months ago by taylorjkeen32.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 21, 2017 at 6:55 pm #210602
    taylorjkeen32
    Participant

    Hello,

    I'm using eleven40 theme and have an image for .image-after-header (replaced the Tagline section). I added code for margin-top: 65px because the photo was being cut off by the header. However, if viewed on a smaller screen (i.e. phone) there is a blank space between the header and the image (guessing due to the 65px). How do I get the image to always butt up to the bottom of the header no matter what screen size? Do I need to do something on the @media in the CSS? If so, how do I do this when the code is div and in Functions.php file?

    Thanks in advance!

    http://taylorjkeen.com
    August 22, 2017 at 2:42 am #210612
    Victor Font
    Moderator

    You shouldn't be adding the margin-top as inline css. You are using a class named image-after-header. Add the class to the style sheet and apply the margin there. Also add the class to the media queries so you can adjust the margin as needed.

    .image-after-header {
        margin-top: 65px;
    }

    Regards,

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

    August 22, 2017 at 6:36 pm #210652
    taylorjkeen32
    Participant

    Ok, this is what I have in my Theme Functions file:

    //* 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" style="margin-top: 65px;">';
    echo '';
    echo '</div>';
    }

    Is none of that supposed to be there? Just add it in the two spots you stated above?

    August 23, 2017 at 8:41 pm #210714
    taylorjkeen32
    Participant

    Ok, I got the code in the right places as you said above. However, it seems like putting it in the media queries section doesn't do anything. Anytime the full header/navigation shows the top part of image is under header But, when the header/navigation changes to the mobile responsive (drop down menu) the image appears correctly (butting up to bottom of menu).

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