• 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

How do I make my site load a different header image on smart phones?

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 › How do I make my site load a different header image on smart phones?

This topic is: not resolved
  • This topic has 4 replies, 3 voices, and was last updated 9 years ago by Doug Edgington.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 27, 2016 at 11:14 am #184533
    sevinz
    Member

    My header image is 1100x167 and looks great on desktops and tablets, but on smart phones the text in the image is too small to read.

    I'm using the Daily Dish Pro theme and I'd like it to load a completely different header image (480x218) for people on smart phones.

    I've been at this for hours and tried several things (mostly editing the stylesheet) but nothing seems to work. Can anyone help? Thanks!

    http://www.urbansurvivalsite.com
    April 27, 2016 at 11:44 am #184537
    Victor Font
    Moderator

    You can do this easily because you are using a background image. This is the code you use for the normal image:

    .site-title a {
        background: url(http://urbansurvivalsite.com/wp-content/uploads/uss-header-image.jpg) no-repeat !important;
    }

    You have to copy this to one of the media queries at the bottom of style.css or create a new media query for the size where you want the switch to take place, and just change the url to the new image.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 27, 2016 at 12:06 pm #184546
    sevinz
    Member

    Thanks for the reply!

    I actually tried this method already, and I went ahead and tried again. Here you can see where I put the code:

    @media only screen and (max-width: 480px) {
    
    	.site-title a {
        background: url(http://urbansurvivalsite.com/wp-content/uploads/uss-header-480.jpg) no-repeat !important;
    }

    But when I check it on my android I still see the 1100x167 image instead of the smaller one.

    May 3, 2016 at 6:12 am #184894
    Victor Font
    Moderator

    I just noticed that the code is adding !important to the inline CSS. This is forcing the inline CSS to override everything else. Not sure how to fix it.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 3, 2016 at 10:57 pm #184939
    Doug Edgington
    Member

    You can try using more specific rules by adding elements before .site-title to give it a higher priority. Not sure if it will override the inline declaration, but you can give it a try.

    @media only screen and (max-width: 480px) {
    	html body .site-title a {
        background: url(http://urbansurvivalsite.com/wp-content/uploads/uss-header-480.jpg) no-repeat !important;
    }

    Doug Edgington
    http://www.dougedgington.com

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