• 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

Metro Pro Custom Logo Size – Responsive

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 › Metro Pro Custom Logo Size – Responsive

This topic is: not resolved

Tagged: Metro Pro, Responsive logo

  • This topic has 7 replies, 4 voices, and was last updated 9 years, 4 months ago by gigtime.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 5, 2014 at 11:28 am #130610
    dd50m
    Member

    Hello Everyone!

    Using Metro Pro, I modified the header size from the stock 270x80 to be 359x120. Looks fine on desktop, but in portrait on mobile, the right-side of the logo is cropped instead of being resized to fit the screen. Here is the code that I changed:

    functions.php:

    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    // 'width' => 359,
    // 'height' => 120,

    style.css:
    .header-image .site-title a {
    background-color: none;
    max-width: 359px;
    min-height: 120px;

    What else do I need to change to make the logo responsive?

    November 5, 2014 at 11:34 am #130611
    Brad Dalton
    Participant

    Modify the CSS in the Media Queries section to get it looking the way you want on different sized screens.


    Tutorials for StudioPress Themes.

    November 5, 2014 at 11:38 am #130612
    dd50m
    Member

    I have been experimenting in that area for quite a while before posting, can't seem to find the right combo...could you be a little more specific?

    November 5, 2014 at 11:40 am #130613
    dd50m
    Member

    For example, I added a max-width line (and tried various amounts: 50%, 80%, etc), but that just resulted in further cropping instead of scaling.

    November 6, 2014 at 2:50 pm #130729
    dd50m
    Member

    Can you provide any more assistance regarding this issue?

    November 6, 2014 at 3:07 pm #130733
    dd50m
    Member

    Edit:
    Never mind, I just figured it out, what was missing from the CSS was:

    background-size: contain !important;

    Nothing needs to be done with the media queries to make this work!

    Interesting, I don't know why that wouldn't just be included by default, but okay.

    Here is the code, bold is what I changed and what I added:

    .header-image .site-title a {
    background-color: none;
    max-width: 359px !important;
    min-height: 120px !important;
    padding: 0;
    background-size: contain !important;
    }

    November 14, 2014 at 11:33 am #131534
    hn345
    Member

    I'm not a professional web designer, but my understanding is that the !important declaration should be used sparingly, if at all, because it can have unintended consequences. It can override other important coding. That may be why it was not "included by default". But I do hope it works for your website!

    September 22, 2016 at 8:42 pm #193565
    gigtime
    Participant

    I tried a number of things based on various posts and tutorials I discovered but the only one that worked was adding the line he suggested:

    background-size: contain !important;

    I did not use the '!important' tag on the size and width lines.

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