reduce header size on password mode (mobile phone view)

Topic summary

A user needed to reduce excessive header spacing on their Dawn theme’s password page when viewed on mobile devices. After removing the sign-in option and hiding the padlock icon, an invisible link remained, creating unwanted empty space at the bottom of the header.

Solution provided:

  • Add custom CSS code to the theme’s stylesheet (base.css, style.css, or theme.css)
  • The code targets mobile screens (max-width: 749px) and removes top/bottom margins and padding from .password-content and .password-header classes

Outcome:
The CSS solution successfully eliminated the empty space and tightened the header layout. The issue was resolved and marked as solved by the original poster.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi,

I’ve put my dawn theme on password mode until I’m ready to launch, but the header is too thick/has too much space at the bottom on the mobile phone view.

I’ve removed the sign in option and hidden the padlock icon which was at the bottom of the header, but the link is still live (and now invisible) which I think is the reason why it looks like large empty space.

Can anyone help me remove that link please and get rid of the empty space, tightening the header up at the bottom, please?

Thanks in advance!

1 Like

Hi @richard-mp

PLease, share your store URL. THanks!

Hi, and thanks for reaching out! My url is musclepeach.com

Thanks for the info, try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px) {
    .password-content {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

.password-header {
    padding-bottom: 0 !important;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

You absolute legend! That worked perfectly. Thanks again for your help :slightly_smiling_face: