• 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

Help with responsive header

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 › Help with responsive header

This topic is: resolved

Tagged: header image, responsive header, Sample Theme

  • This topic has 11 replies, 3 voices, and was last updated 7 years, 11 months ago by bmcminn.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • May 16, 2017 at 2:26 am #206512
    bmcminn
    Member

    I'm using genesis sample and trying to get my friend's website looking nice. He wants to use a B&W image with his business name as his header. This image at the site now is just a place holder. Here is the site.
    http://wipsite.jsbmac.com/
    Another site with a image that appears to work the way I'm looking for that I think also uses genesis sample.

    Home

    Additionally the image should run edge to edge or close to it. I can make the background color match if it doesn't all sit perfect.


    Learning front-end development, aspire to learn more.

    http://wipsite.jsbmac.com/
    May 17, 2017 at 2:59 pm #206613
    bmcminn
    Member

    Hmm. I don't see how I can edit that....

    Those links are crazy looking. Sorry. Let me try again.

    The page I'm working on.

    A page w/ the same theme, header adjusts.

    Sorry about my poor use of markup. Thanks for any help.


    Learning front-end development, aspire to learn more.

    May 17, 2017 at 6:32 pm #206639
    bmcminn
    Member

    The links won't show up even though they are bracketed by anchor tags??

    cuyamungueinstitute

    Ugh, never mind...


    Learning front-end development, aspire to learn more.

    May 17, 2017 at 6:34 pm #206640
    bmcminn
    Member

    OK... site I'm working on.

    wipsite.jsbmac.com

    Other site.

    cuyamungueistitute.com

    Sorry again. Total nubbin.


    Learning front-end development, aspire to learn more.

    May 17, 2017 at 6:39 pm #206641
    Brad Dalton
    Participant

    Generally you need to make 2 changes to the code to the width and height of your header image:

    1. Modify the values in the PHP code for custom-header in functions.php to match your header image.

    2. And modify the values for CSS under the Site Header section in style.css to match your header image.

    See this Tutorial


    Tutorials for StudioPress Themes.

    May 18, 2017 at 6:48 pm #206665
    bmcminn
    Member

    inspector view


    Learning front-end development, aspire to learn more.

    May 18, 2017 at 10:30 pm #206668
    bmcminn
    Member

    Oh man, I'm having a hard time... Why isn't this link followable to an image?

    http://jsbmac.com//public_html/img/inspectorView.png

    That sure looks like the URL to me...


    Learning front-end development, aspire to learn more.

    May 23, 2017 at 2:37 pm #206894
    bmcminn
    Member

    Hi Brad, thanks for the help. I checked out your tutorial and have a couple of questions.

    First, in general, to get a responsive image do I need to create a bunch of media breakpoints and then upload appropriately sized images for each breakpoint?

    Secondly, more specific, please look at these inspector view images. To center the image I added

    element.style {
        background-position: center !important;
    }

    How do I change this in the CSS file? I pasted it into a bunch of different identifiers and didn't see any changes.
    When I look at the inspector I see that it adds the style attribute to line 90 in the index file. Where is this file??

    inspector view 1
    inspector view 2


    Learning front-end development, aspire to learn more.

    May 24, 2017 at 10:08 pm #206950
    tarmadillo
    Participant

    It looks like you added it to the site header instead of site-title. I think this is close to what you are looking for:

    .header-image .site-title > a {
        background-position: center !important;
        background-size: contain !important;
        float: left;
        min-height: 300px;
        width: 100%;
        background: url(http://wipsite.jsbmac.com/wp-content/uploads/2017/05/garlicana_header.png) no-repeat;
    }

    Added bonus it's becomes a clickable link. It looks good but starts to crop the edges when you get down to mobile but its still readable. be sure to not to add an !important tag to "background".


    https://armadillowebdesign.com

    May 30, 2017 at 3:34 pm #207171
    bmcminn
    Member

    Thank you tarmadill!

    It works really well. I added the code to the css file...

    css file

    And get a result that leaves the original header image in place...

    site header 1

    So I "inspect" it and turn it off...

    site header 2

    Looks great, but I can't find that line of code!

    Where is this index file with .custom-header .site-header on line 90?

    I do not see it in includes/js?

    line 90

    Thanks again for all your help!!!


    Learning front-end development, aspire to learn more.

    May 30, 2017 at 9:48 pm #207192
    tarmadillo
    Participant

    Did you add it using the Appearance>Customize originally?

    If not, if you are using Brackets or Notepad++ or similar you can use ctrl+shift+F to search in all files within the child theme directory, then look for the image file name.

    Also, don't forget to change the url from localhost to your production site's domain name in your css file.

    Honestly, you should have been able to use the Customizer to add the header and then use CSS to change it's size rather than hard-coding the image url in CSS. I realized I made the assumption that you used the customizer and it wasn't working right. Other than having to remember to change the image url in the CSS file there's no real issue for doing it the way I showed you though.


    https://armadillowebdesign.com

    May 31, 2017 at 7:55 pm #207241
    bmcminn
    Member

    Thanks again tarmadill. I am "hard-coding" because I am wanting to learn it.

    I use Sublime Text.

    Your solution worked really well and my friend is going to be excited to see the header.


    Learning front-end development, aspire to learn more.

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