• 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

Trying to Specify Particular Image for Mobile Device in Lifestyle 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 › Trying to Specify Particular Image for Mobile Device in Lifestyle Pro

This topic is: not resolved

Tagged: css, header image, lifestyle Pro, Logo, responsive design

  • This topic has 9 replies, 2 voices, and was last updated 9 years, 2 months ago by StephenD.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 28, 2016 at 6:56 am #196719
    StephenD
    Participant

    Hi,

    I'm using Lifestyle Pro to build a site.

    I've setup the header image which is 1070 x 180 pixels. It has large text across the centre, a small star image above this text, and another line of smaller text below it. It looks fine on large screens, but the text is really small on smaller screens because of the responsive design. For this reason, I'd like to specify an alternative image for smaller devices.

    I've found several tutorials online, but none of them work for me.

    This is some of the CSS code I have:


    @media
    only screen and (max-width: 360px) {

    .header-image .site-title a {
    background-size: contain !important;
    background-image: url('logo.png');
    }

    I'm not quite sure where I'm going wrong.

    Your help is greatly appreciated.

    Stephen

    http://fp.digitalinternet.co.uk
    November 29, 2016 at 5:32 am #196764
    Nettbrygga
    Member

    Hello,

    The CSS inside the media brackets seems fine (if you have the right path to the image).
    Is the problem that the smaller image never even shows on smaller screens?

    If you would like to target a typical phone screen for instance, I would try swapping out the media query with:

    @media only screen and (max-width: 800px) {

    Since it refers to the width of the viewport. I think this should work, if I understood your problem correctly.


    Contact me for Genesis and WordPress related issues – inge [@] nettbrygga.no

    November 29, 2016 at 5:52 am #196767
    StephenD
    Participant

    Hi,

    Thanks for your reply and suggestion.

    I tried changing the max-width to 800px but it didn't work.

    Yes, you have read the question correctly - the smaller image never shows on smaller screens, just the larger image.

    I double-checked the path to the image and it's correct.

    November 29, 2016 at 9:46 am #196777
    Nettbrygga
    Member

    Hm ok. Do you have a live link to your site?


    Contact me for Genesis and WordPress related issues – inge [@] nettbrygga.no

    November 29, 2016 at 1:23 pm #196794
    StephenD
    Participant
    This reply has been marked as private.
    November 30, 2016 at 2:46 am #196807
    Nettbrygga
    Member

    It's marked as private so I can't see it.


    Contact me for Genesis and WordPress related issues – inge [@] nettbrygga.no

    November 30, 2016 at 3:08 am #196809
    StephenD
    Participant

    Here it is again:

    Sure - http://fp.digitalinternet.co.uk

    I changed the background colour of the header section to black while I'm working on this section. The background colour should be the same as the logo's background.

    Initially I used a smaller version of the main logo for the mobile section, but I've changed it to this one and added the URL of this one to the stylesheet - http://fp.digitalinternet.co.uk/wp-content/uploads/2016/11/full-logo-360.png

    I've tweaked the CSS today so the site might look a bit weird!

    Thanks for your help. I hope it's something simple that I'm just not seeing.

    December 2, 2016 at 4:39 am #196904
    Nettbrygga
    Member

    Ah. I see it now. On the big screen you have:

    background: url(http://fp.digitalinternet.co.uk/wp-content/uploads/2016/12/cropped-fwa-logo-1070x178.png) no-repeat !important;
    

    With the !important after it will override the background property for the smaller screen. Either remove it or add !important to the small screen as well.

    I did the following:

    @media only screen and (max-width: 767px)
    .header-image .site-title a {
        background: url(fwa-logo-760.jpg) no-repeat !important;
    }
    

    Can't find your background image though, so check your path. I double checked with another path and this works fine.


    Contact me for Genesis and WordPress related issues – inge [@] nettbrygga.no

    December 2, 2016 at 4:43 am #196907
    Nettbrygga
    Member

    Or. This might be a pathfix:

    url('/fwa-logo-760.jpg') no-repeat !important


    Contact me for Genesis and WordPress related issues – inge [@] nettbrygga.no

    December 5, 2016 at 4:10 am #197033
    StephenD
    Participant

    Hi Nettbrygga,

    Thank you so much for your help. Your solution worked and I'm finally happy with the way the site looks on a smartphone so I can pass it over to the client for a final checkover.

    Thank you once again.

    Stephen

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