• 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

Beautiful Banner Background

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 › Beautiful Banner Background

This topic is: resolved

Tagged: banner, banner background, Beautiful, Beautiful theme, size

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by Lauren @ OnceCoupled.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 17, 2015 at 4:22 pm #152507
    jtdatawork
    Member

    Hi!

    I wanted to resize the banner background so it shrinks to stay contained for mobile. I was able to do this using code modified from this forum post on the same subject. http://www.studiopress.community/topic/beautiful-pro-header-image/ - by removing the custom background from functions and replacing it with css.

    It worked, but the image becomes too small on smaller devices. So I tried to modify it in the media queries, as suggested in the same post, but it didn't work. That post was resolved a year ago, and I think the code may have changed since then. Or else I am missing something. Can anyone help me pinpoint how to make the media queries work as well as the full size?

    Thank you!
    Judy


    JT Dataworks Web design and SEO

    http://coldnosecollege.s406.sureserver.com/
    May 18, 2015 at 8:01 am #152549
    Lauren @ OnceCoupled
    Member

    The height of the containing element is set to 200px, so it will not decrease with the size of the image. You can do it manually, by adding media queries, as suggested in the previous post. The code provided there should work on your page, but you may need to adjust the height at more regular intervals, and to a different number. For example:

    @media only screen and (max-width: 768px) {
        .custom-background .site-header-banner {
            height: 128px;
        }
    }
    
    @media only screen and (max-width: 480px) {
        .custom-background .site-header-banner {
            height: 80px;
        }
    }

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    May 18, 2015 at 4:07 pm #152616
    jtdatawork
    Member

    Hi Lauren,

    Thanks! I had tried the media queries, but they didn't work. I must have had some bad code in there. I reset the stylesheet and tried again and it worked.

    Thanks for encouraging me to try again. 🙂

    Judy


    JT Dataworks Web design and SEO

    May 18, 2015 at 5:52 pm #152629
    Lauren @ OnceCoupled
    Member

    Glad you got it worked out! Yeah, that happens when you're missing something like a closing bracket.

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Beautiful Banner Background’ is closed to new 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