Resize top Bar

Topic summary

Main issue: The blue top bar appears too large on mobile, occupying excessive screen space.

Key steps taken:

  • The helper requested the store URL to inspect (stoneglassllc.com).
  • Provided a CSS-based fix via the theme editor: add a mobile-specific media query (max-width 500px) in the theme’s CSS file (base.css/style.css/theme.css).
  • Changes include: set row-gap to 0 for the top-bar flex container, hide the .top-bar-content on mobile, and reduce top-bar padding to 1rem 0.

How to apply:

  • Shopify Admin > Online Store > Themes > Actions > Edit code > Assets > open the main CSS file > paste the CSS at the bottom > Save.

Outcome and status:

  • The store owner confirmed the solution works and the mobile top bar height is reduced.
  • Before/after screenshots were shared to illustrate the result.
  • Discussion resolved; no further issues reported.
Summarized with AI on December 14. AI used: gpt-5.

Hi!

I have a question about the blue top bar and how to adjust the size.

When on desktop it looks normal but on mobile it takes a large part of the screen thank you! Www.stoneglassllc.com

1 Like

Hi @NjGlassblower

PLease, share your store URL. Thanks!

1 Like

Www.stoneglassllc.com

thank you

Thanks, 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: 500px){
.dt-sc-flex-space-between.flex-default {
    row-gap: 0;
}

.top-bar-content {
    display: none !important;
}

.dt-sc-header-top-bar .dt-sc-flex-space-between {
    padding: 1rem 0 !important;
}
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

@Made4uo-Ribe Thank you!! that worked