• 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

Why When I Add Custom Images to My Header It Adds Padding? [Metro Pro]

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 › Why When I Add Custom Images to My Header It Adds Padding? [Metro Pro]

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 10 years, 11 months ago by Porter.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 9, 2015 at 5:41 pm #140265
    jcarlson
    Member

    I'm finding that when I add a custom logo in the theme customize panel or an image in the header widget it adds about 15px or so of extra padding to the bottom of the header. I'm using the recommended logo size too. Why is it doing this?

    http://staging.briancabell.com/
    February 9, 2015 at 7:32 pm #140275
    Porter
    Participant

    I'm not sure of the exact area you're having issues with, but here are two things I noticed that sound like what you're describing:

    .site-title a, .site-title a:hover {
    background-color: #f96e5b;
    color: #fff;
    display: inline-block;
    padding: 16px;
    text-decoration: none;
    }

    The padding 16px is on all sides, and is what created the red background behind the current logo.

    .widget {
    margin-bottom: 32px;
    word-wrap: break-word;
    }

    This adds 32px to every widget on your site. If you want to specifically alter this area, you can add:

    .header-widget-area .widget {
    margin-bottom: 0px;
    }

    The zero removes the 32px added to all widgets. If there's more to it than this, I'd have to take a deeper look.


    Buy me a beer? | Try DigitalOcean VPS Hosting

    February 9, 2015 at 7:53 pm #140277
    jcarlson
    Member

    Ok, thanks. That seems to address the padding issue I'm having.

    I found this guide: http://wpsites.net/web-design/customize-header-logo-banner-images-in-metro-theme/

    and it shows how to do basically exactly what I want. However the custom header code--

    add_theme_support( 'genesis-custom-header', array(
    'flex-height' => true,
    'height' => 87,
    'width' => 1080
    ) );

    is different from what is in my Metro Pro functions.php, which is:

    add_theme_support( 'custom-header', array(
    'width' => 270,
    'height' => 80,
    'header-selector' => '.site-title a',
    'header-text' => false
    ) );

    Editing the values of this function makes the Header tab on my theme customization disappear.

    Any thoughts on how I can apply this guide to my theme? (I'm assuming the cause of this is that there have been updates to the Metro Pro theme since this guide was written.

    Thanks!

    February 9, 2015 at 8:05 pm #140278
    Porter
    Participant

    That's actually out of my skill set, but someone around here should be able to help you.


    Buy me a beer? | Try DigitalOcean VPS Hosting

  • 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