Jump to content

Mimic custom desktop header/nav layout for mobile

Recommended Posts

Hello, I'd like to have these changes applied on mobile:

  • Remove hamburger menu
  • align INFO and WORK link same as desktop version
  • Hide "email and instagram" text blocks on mobile.

See desired mobile layout below.

Any help would be awesome!

chrisscholzdesign.com

CSDesign123

Screenshot 2024-04-15 at 1.36.05 PM.png

Screenshot 2024-04-15 at 1.33.22 PM.png

Edited by cscholz
updated description
Link to comment
9 hours ago, cscholz said:

Hello, I'd like to have these changes applied on mobile:

  • Remove hamburger menu
  • align INFO and WORK link same as desktop version
  • Hide "email and instagram" text blocks on mobile.

See desired mobile layout below.

Any help would be awesome!

chrisscholzdesign.com

CSDesign123

Screenshot 2024-04-15 at 1.36.05 PM.png

Screenshot 2024-04-15 at 1.33.22 PM.png

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

@media only screen and (max-width: 799px ) {
    .header-display-desktop {
        display: flex !important;
    }
    .header-display-mobile, .header-burger, .fe-block-1425b89ddc7a17aa23bc, .fe-block-d941bcd01fcfc8af32ab, .fe-block-bb58f3e314962daad961, .fe-block-83056773bd92df13ae77 {
        display: none !important;
    }
    .header .header-title-nav-wrapper .header-title {
        flex: 0 0 50% !important;
    }
    .header .header-title-nav-wrapper .header-nav {
        display: block !important;
    }
    header#header .header-nav-list * {
        font-size: 12px !important;
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
14 hours ago, cscholz said:

@Web_Solutions wow, that worked perfectly - thank you!! Only thing that I noticed is that my site title is sitting slightly below the nav links by a few pixels. See pic below. Anyway of getting them all aligned?

Screenshot 2024-04-16 at 9.45.21 AM.png

Replace the previous code with the code below.

@media only screen and (max-width: 799px) {
    .header-display-desktop {
        display:flex !important
    }

    .header-display-mobile,.header-burger,.fe-block-1425b89ddc7a17aa23bc,.fe-block-d941bcd01fcfc8af32ab,.fe-block-bb58f3e314962daad961,.fe-block-83056773bd92df13ae77 {
        display: none !important
    }

    .header .header-title-nav-wrapper .header-title {
        flex: 0 0 50% !important
    }

    .header .header-title-nav-wrapper .header-nav {
        display: block !important
    }

    header#header .header-nav-list * {
        font-size: 12px !important;
    }
    header#header .header-nav-list .header-nav-item {
        padding-top: 2px; 
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.