Login with SHOP button cutoff on Header

Solved

Login with SHOP button cutoff on Header

NailMeHarder
Tourist
9 1 3

I've added the Login with Shop button to my homepage header, however the button is getting cutoff. How can I fix this?  I'm using the Refresh theme with no custom code. 

 

817191c1e3096ab9e8eec510419969ea.png

Accepted Solution (1)
NailMeHarder
Tourist
9 1 3

This is an accepted solution.

Figured it out - after trying the code provided, i received this error: <"html" does not appear to be used in this section. Try a different selector.> It seems that 

  • You can’t use global selectors like html, body, or even @media queries directly unless the section supports them

  • Shopify restricts this input to CSS tied to that section’s DOM tree

To re-write the code without html or Global Context, I used this code:

 

.header__icons .shopify-app-block {
  max-width: fit-content !important;
  max-height: fit-content !important;
  overflow: visible !important;
}

.header__icons .shopify-app-block iframe {
  width: 180px !important;
  height: auto !important;
  display: block !important;
}

 It seems to work now. 

View solution in original post

Replies 7 (7)

Dan-From-Ryviu
Shopify Partner
11700 2293 2475

Hi @NailMeHarder 

Please share the link to your store so we can check

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

NailMeHarder
Tourist
9 1 3

https://nailmeharderstore.myshopify.com/ . Another thing is once someone Logs in via SHOP, the button disappears completely. Are there options for them to log out? 

Dan-From-Ryviu
Shopify Partner
11700 2293 2475

Please add this code to Custom CSS of Header in Online Store > Themes > Customize > Header. 

@media (min-width: 750px) {
    html .header__icons .shopify-app-block { 
        max-width: fit-content; 
        max-height: fit-content;
    }
}

Screenshot 2025-04-22 at 09.47.26.png

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

NailMeHarder
Tourist
9 1 3

Thank you - unfortunately it didn't change the outcome. Also, I can't see the button once I log-in, not sure how to fix this.  I have to use incognito to see the button, but it shows cut-off still

NailMeHarder
Tourist
9 1 3

This is an accepted solution.

Figured it out - after trying the code provided, i received this error: <"html" does not appear to be used in this section. Try a different selector.> It seems that 

  • You can’t use global selectors like html, body, or even @media queries directly unless the section supports them

  • Shopify restricts this input to CSS tied to that section’s DOM tree

To re-write the code without html or Global Context, I used this code:

 

.header__icons .shopify-app-block {
  max-width: fit-content !important;
  max-height: fit-content !important;
  overflow: visible !important;
}

.header__icons .shopify-app-block iframe {
  width: 180px !important;
  height: auto !important;
  display: block !important;
}

 It seems to work now. 

Dan-From-Ryviu
Shopify Partner
11700 2293 2475

Thanks for updating! 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.