• 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

Lifestyle Pro swap out header at 767 breakpoint

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 › Lifestyle Pro swap out header at 767 breakpoint

This topic is: resolved

Tagged: css, header, lifestyle Pro, media queries

  • This topic has 6 replies, 4 voices, and was last updated 8 years, 6 months ago by ClintN.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 6, 2015 at 11:42 pm #143548
    ClintN
    Participant

    Lifestyle Pro

    I'm attempting to swap out the theme's header at the media queries 767px breakpoint using:

    @media only screen and (max-width: 767px) {
    .header-image .site-header .wrap {
    		background: url(images/767.jpg) no-repeat !important;
    		background-size: contain !important;
    	}
    }

    This might be the right path for me, however the original full-width header image (set in WP-Admin) is overlaid over the top. If I can make this disappear then remove the top & bottom margins I think I will have achieved success

    I tried using :

    @media only screen and (max-width: 767px) {
    title-area .site-title a  {
    		background: url(images/767.jpg) no-repeat !important;
    		background-size: contain !important;
    	}
    }

    But this did not swap out the files unfortunately.

    Any pointers will be greatly appreciated.

    http:// http://demo-2.neilsen.bitnamiapp.com/
    March 7, 2015 at 1:26 am #143551
    Brad Dalton
    Participant

    Try display: none; with the class for the original image @767


    Tutorials for StudioPress Themes & WooCommerce.

    March 7, 2015 at 6:33 pm #143612
    ClintN
    Participant

    Thank you braddalton

    March 8, 2015 at 1:47 am #143636
    ClintN
    Participant

    I have had success in removing the original file with breaddalton's display: none; with the class for the original image @767

    @media only screen and (max-width: 767px) {
    
            .site-title {
    		font-size: 32px;
    		display: none !important;
       	}
    	
    	
    	.header-image .site-header .wrap {
    		background: url(images/767.jpg) no-repeat left;
    		background-size: cover !important;
    	}
    
    }
    

    This code above only gives me a % of the header's height header swap issue

    I have not been able to get the new header displaying it's full height & width

    March 8, 2015 at 7:34 am #143655
    Victor Font
    Moderator

    I'd like to help you, but your site won't load in the responsive tester: http://www.studiopress.com/responsive/


    Regards,

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

    March 8, 2015 at 12:35 pm #143687
    emasai
    Participant

    Change the 767 media queries to:

    .header-image .site-header .wrap
    background: url(images/767.jpg);
      background-size: contain;
      background-repeat: no-repeat;
      height: 70px;
    
     .site-header {
      background-color: transparent;}

    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    March 9, 2015 at 3:31 am #143760
    ClintN
    Participant

    Many thanks Victor & Lynne

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Lifestyle Pro swap out header at 767 breakpoint’ 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

© 2023 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