It worked thank you so much
Topic summary
A user is experiencing issues with CSS code that previously worked to hide sections on mobile devices. The code successfully hides a section on desktop but fails to hide a different section on mobile.
Problem Details:
- Using custom CSS in base.css with media queries
- Desktop hiding works:
@media (max-width: 768px)for slideshow section - Mobile hiding fails:
@media (min-width: 768px)for image banner section - Website: leorel.com product page
Solutions Provided:
Two community members offered fixes:
-
Script-based solution: Add JavaScript code to theme.liquid file above
</body>tag to hide specific section IDs -
Corrected CSS: Fix the media query syntax and structure, ensuring proper bracket placement and
!importantdeclarations
Outcome:
- User confirmed the solution worked successfully
- Issue appears to stem from CSS syntax errors in the original code