• 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

Responsive Design Header Trouble

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 › Responsive Design Header Trouble

This topic is: not resolved

Tagged: lifestyle Pro, responsive design

  • This topic has 4 replies, 3 voices, and was last updated 12 years ago by Tony @ AlphaBlossom.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 22, 2014 at 12:22 pm #101913
    wolfcoach
    Participant

    I've set up a web site (www.gemsntreasures.com) with a responsive header image for smaller screens. However, when the screen size shrinks, the original full-sized header image is still showing up and the responsive design elements are appearing behind it.

    I'm having trouble locating the CSS that says "stop displaying the full-sized header when screen size shrinks". Any help would be appreciated.

    Thanks in advance.

    http://www.gemsntreasures.com
    April 22, 2014 at 12:33 pm #101917
    CalliaWeb
    Member

    Hi

    It looks like the full size header image is a background style of .header-image .site-title a, whereas your responsive background images are applied to .header-image .site-header .wrap, so they are being displayed as well rather than instead off.

    Try changing .header-image .site-header .wrap to .header-image .site-title a in your media queries.

    Cheers
    Jo

    April 22, 2014 at 12:45 pm #101922
    Tony @ AlphaBlossom
    Member

    Hello,

    In your theme's styles.css file, towards the end you have several media queries that start with @media only...

    The one that says @media only screen and (max-width: 1023px) has:

    
    .header-image .site-header .wrap {
        background: url("http://gemsntreasures.com/wp-content/uploads/2014/04/header-768.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    }
    

    Your main image is on ".header-image .site-title a", so you can either add this to before the rule above:

    
    .header-image .site-title a {
        background: transparent;
    }
    

    Instead of that, I would recommend changing the ".header-image .site-header .wrap" above to:

    
    .header-image .site-title a {
        background: url("http://gemsntreasures.com/wp-content/uploads/2014/04/header-768.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
        background-size: contain;
    }
    

    You should change it both for 1023px media query and 767px media query.

    Now instead of specifying the background images in two places (the wrap and the title), you're just changing the image used in one location (the title).

    Also, the "background-size: contain;" will help keep the background image from being cut off. You will probably want to adjust the height at various browser widths so it's not so tall with a smaller image. Please note the is not supported by internet explorer 8, so if that's an issue you'll have to find another solution (adjust image sizes, jquery plugin, etc).

    I hope that helps!

    Tony


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    April 22, 2014 at 1:52 pm #101926
    wolfcoach
    Participant

    Thank you both - you nailed it!

    ...And that's just one of the problems with copy and pasting from online tutorials 🙂

    Again, thank you both!

    April 22, 2014 at 1:57 pm #101927
    Tony @ AlphaBlossom
    Member

    awesome, glad we could help! Sorry for the double post, Jo's reply wasn't there when I started 🙂


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

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