Shopify themes, liquid, logos, and UX
Hello, I need assistance. I am trying to wrap a specific code in a media query to make "mobile only" customizations. When I try, desktop is affected and other technical issues begin to arise. I am trying to simply move the "filters" title back into the viewport on mobile. This works when make margin-left: 0px; but it totally messes up everything I created on the desktop view. What is the proper way to wrap this code, so desktop settings won't be affected?
@media only screen and (max-width:777px)
{:where(.listing-page,.search-page) .intro .filter>summary {
padding: var(--padding);
margin-left: 0vw;
}
https://2d26b3.myshopify.com/collections/all
pw: reishi
Solved! Go to the solution
This is an accepted solution.
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file app.css
Step 3: Paste the below code at bottom of the file -> Save
@media (max-width: 767px){
:where(.listing-page,.search-page) .intro .filter>summary {
margin-left: 0 !important;
}}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
You are missing a closing curly bracket.
@media only screen and (max-width:777px) {
:where(.listing-page,.search-page) .intro .filter>summary {
padding: var(--padding);
margin-left: 0vw;
}
}
This is an accepted solution.
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file app.css
Step 3: Paste the below code at bottom of the file -> Save
@media (max-width: 767px){
:where(.listing-page,.search-page) .intro .filter>summary {
margin-left: 0 !important;
}}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
You are missing a closing curly bracket.
@media only screen and (max-width:777px) {
:where(.listing-page,.search-page) .intro .filter>summary {
padding: var(--padding);
margin-left: 0vw;
}
}
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024