i want the Shopify header to only display on mobile

i want the Shopify header to only display on mobile

shop22dash
Tourist
22 0 4

Im using gempages and use their desktop header but for mobile i want to keep the original shopify header because it looks cleaner. also i wanted to remove the 2 buttonScreenshot 2025-05-29 032310.png

 

s on the right, search and check cart button. 

Replies 23 (23)

BiDeal-Discount
Shopify Partner
792 105 178

Hi @shop22dash 

can you share your store url & password (if applicable) to let me check then give you the solution

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

from the shopify editor or the actual URL

 

BiDeal-Discount
Shopify Partner
792 105 178

The storefront url pls

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

ill accept you to see it

BiDeal-Discount
Shopify Partner
792 105 178

requested done

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

yea done

BiDeal-Discount
Shopify Partner
792 105 178

To remove 2 button search & cart on header. Let try to go to:

Admin -> Sale Channels -> Online Stores -> Themes -> click to 3 dots & edit code your theme.

Find file base.css then add this code to bottom of that file:

.header__search, .header__icon--cart {
  display: none !important;
}

BiDealDiscount_0-1748491571992.png

 

To hide gempage header on mobile, let try to add this Custom CSS to your file base.css:

@media screen and (max-width: 1024px) {
  #shopify-section-template--18428914827435__gp_section_568520524360057911 {
    display: none !important;
  }
}

BiDealDiscount_0-1748491899010.png

 

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

shop22dash_0-1748491929495.png did not do anything i still see the search icon and check cart icon on the right, also still viewable on desktop

 

shop22dash
Tourist
22 0 4

for the theme im using shrine pro 

BiDeal-Discount
Shopify Partner
792 105 178

You're missing a "}" character at the base.css file:

 

BiDealDiscount_0-1748492034186.png

 

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

okay it worked, what about to make it show only on mobile

BiDeal-Discount
Shopify Partner
792 105 178

oh, you only need to replace those code by this:

@media screen and (min-width: 749px) {
    .header__search, .header__icon--cart {
        display: none !important;
    }
}

Be careful we have 2 characters "} }" before new code:
Screenshot 2025-05-29 at 11.28.14.png

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

how did you get to that code page? i clicked edit code on the headline but it only goes up to 1077

BiDeal-Discount
Shopify Partner
792 105 178

haha because the code you edit directly was minify so it neat on 1 line. Just need follow my way 😉

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

ok how do i see the full version so i can do that step, like you said its just on 1 line. how can i see it expanded like on your screen

BiDeal-Discount
Shopify Partner
792 105 178

The Shopify code editor isn't supported to unminify. You can use some online tool as : https://www.unminify2.com/

btw, if you need me edit direct for you, let add me as collaborator so then I can help.

Thanks

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp
shop22dash
Tourist
22 0 4

Screenshot 2025-05-29 050540.png like that? i feel like im missing a  {

shop22dash
Tourist
22 0 4

shop22dash_0-1748496176162.png

dident work

shop22dash
Tourist
22 0 4

hello

BiDeal-Discount
Shopify Partner
792 105 178

I said that :

Be careful we have 2 characters "} }" before new code

if you need me edit direct for you, let add me as collaborator so then I can help it faster

- Helpful? Like & Accept solution! Coffee tips fuel my dedication.
- BiDeal Bundle Volume Discounts: Upsell with discount bundles, quantity breaks, volume discounts & mix-and-match bundles. AOV+ with free gifts, free shipping & progressive cart
- Contact me via WhatsApp

goldi07
Navigator
376 41 67

Hello @shop22dash 

To show only the search, user (account), and cart icons on mobile in your Shopify header — and hide the rest (like links, logo, etc.) — you'll need to add some custom CSS and possibly adjust the theme's header Liquid layout depending on your theme.

Here’s how you can achieve this:

 

 

Step 1: Identify the Mobile Breakpoint
Most Shopify themes treat screens under 750px width as mobile (@media screen and (max-width: 749px)).

 

Step 2: Add Custom CSS to Your Theme
1. Go to Online Store > Themes > Edit code

2. Open base.css, theme.css, or styles.css (depends on your theme, usually in the assets folder).

3. Add the following code at the bottom:

/* Hide everything in the header except icons on mobile */
@media screen and (max-width: 749px) {
  .header__logo,
  .site-header__logo,
  .header__menu,
  .site-nav, /* for older themes */
  .header__menu-item,
  .header__heading,
  .header__inline-menu,
  .header__top-links,
  .header__bottom,
  .header__menu-toggle, /* hides menu if you want */
  nav, /* general fallback */
  .header__main-nav,
  .header__call-to-action {
    display: none !important;
  }

  /* Make sure icon buttons are visible */
  .header__icon,
  .header__icon--account,
  .header__icon--cart,
  .header__icon--search {
    display: inline-flex !important;
  }

  .header__icons {
    justify-content: flex-end;
    width: 100%;
  }
}

 

 

Step 3: Optional Adjustments
If your theme renders icons conditionally (e.g. only shows them in desktop or mobile menus), you might need to:

. Move the icon code blocks out of a conditional like {% if section.settings.show_icons %}.

. Or duplicate the icon blocks into the mobile header layout.

 

plz let me know if uts work or not work 

Thank you  😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here
shop22dash
Tourist
22 0 4

shop22dash_0-1748495151207.png

like that? i feel like im missing a  {