• 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

Removing header in mobile view

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 › Removing header in mobile view

This topic is: not resolved

Tagged: header, mobile

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 8 months ago by frobn.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 19, 2015 at 4:24 am #159797
    nomad_jess
    Member

    Hi there,

    My header is detailed so it looks strange when scaled down on mobile. I'm looking into two options:

    1. Removing the header image altogether when viewed on mobile.
    2. Replacing the header with a text title when viewed on mobile.

    I've been trying a number of snippets of code I've found online, but so far nothing has worked. If anyone has some insight, I'd greatly appreciate it.

    Many thanks in advance,

    Jess

    http://notesofnomads.com
    July 20, 2015 at 12:03 am #159854
    Brad Dalton
    Participant

    Here's one solution which works.

    Took me a few hours to work out and test.


    Tutorials for StudioPress Themes.

    July 20, 2015 at 1:29 am #159860
    nomad_jess
    Member

    Hi Brad,

    Thank you very much for getting back to me. I went to the tutorial but I have to pay to access it?

    July 20, 2015 at 7:56 am #159875
    frobn
    Member

    Quickest way to do it is with css.

    Put this in your style sheet:


    @media
    only screen and (max-width: 400px) {
    .site-header {display:none}
    }

    Change the min-width to whatever width you want the header to disappear.

    If you want an alternate header for mobile you can include it in the css instead of display:none by declaring a different image, i.e.


    @media
    only screen and (max-width: 400px) {
    .site-header { background-image: url("your-mobile-image.png") }
    }

    Hope this helps.

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

© 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