• 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

Changing the header image size responsively

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 › Changing the header image size responsively

This topic is: not resolved

Tagged: going green, header, Logo, responsive

  • This topic has 6 replies, 4 voices, and was last updated 12 years, 2 months ago by MJG108.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 21, 2013 at 8:04 pm #58097
    Jeff Hester
    Member

    I'm doing dev work with the new Going Green 3.0 theme. I want to use an image for the header which is preset to 340 x 70 pixels. I know I can change this (I did it on the old version of the theme) but is there a way to use media queries to display different sizes of the logo based on the media query?

    Right now it looks fine at the mobile/tablet sizes, but a little small on the desktop sizes.


    My Blog | Twitter | Instagram | Facebook | Flickr | LinkedIn | Google+

    August 22, 2013 at 7:31 am #58182
    Robin
    Member

    Sure. Set your main logo in the main part of the stylesheet as normal. Then add a new rule in the relevant media query sections. So I just did a site that looks like this:

    Main section of stylesheet:
    .header-image .title-area {
    background: url(images/logo.png) center no-repeat;
    background-size: 500px 150px;
    padding: 0;
    }

    Media Query:
    @media only screen and (max-width: 767px) {
    .header-image .title-area {
    background: url(images/logo-mobile2x.png) center no-repeat;
    background-size: 320px 150px;
    }
    }

    HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    August 22, 2013 at 10:03 pm #58352
    MJG108
    Member

    Can you do the same thing for header right? I have a banner that moves under my logo when I go into tablet and mobile size.

    August 23, 2013 at 4:48 am #58381
    Robin
    Member

    You can do the same thing for any of it. I will mess around with layouts using the Chrome Developer tools or Firebug until I have what I want, then put it in my own code. Good luck!


    I do the best I can with what I’ve got. (say hey on twitter)

    August 23, 2013 at 12:38 pm #58467
    Eric Alexander
    Member

    I know it is yet another plugin, but, Genesis Responsive Header (CAN) load different headers for different widths. CSS is leaner, but sometimes it is best to insure the logo looks good small and important things like phone numbers get enlarged so they very visible. I think it is awesome to ensure the branding looks good small and the phone numbers get large enough to see with alternate headers.

    Genesis Responsive Header

    BUT that being said, I am going to try the CSS approach. That will let me dump another plugin.


    Eric
    Striped Ape Digital Media

    August 25, 2013 at 1:34 pm #58751
    MJG108
    Member

    Thanks for the info. I'll play around with it in Chrome Dev.

    August 25, 2013 at 2:10 pm #58760
    MJG108
    Member

    It worked! It took me a little bit to find the header-right widget area in style.css, but once I found it. I just added the following code to the tablet and mobile area in media queries.

    .site-header .widget-area {
    display: none;
    }

  • 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