Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
Solved! Go to the solution
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.
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.
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?
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;
}
}
- 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.
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
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.
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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025