I’m experiencing issues with the banner images in my Shopify store theme. Specifically, the banners are either not displaying correctly or not rendering at all, possibly due to incorrect aspect ratio calculations and CSS opacity settings.
Issue Overview:1. Banners Not Displaying Properly:
- The aspect ratio for the banner images seems to be calculated incorrectly, causing the image containers to either collapse or display the wrong dimensions.
- Additionally, I noticed a CSS rule that applies a 0.0 opacity to a pseudo-element (::after), which might be affecting the banner visibility.
-
Troubleshooting Steps I’ve Taken:
- I inspected the Liquid code and found that the aspect ratio is calculated with a fallback value of 1.5. I attempted to adjust the aspect ratio to 16:9, but the issue persists.
- I also identified that the opacity for the banner’s ::after pseudo-element is set to 0.0, which might be causing the banner to be invisible.
- I adjusted both the Liquid aspect ratio logic and the CSS opacity, but these changes didn’t resolve the issue fully
I tried to revert the code to before anything changed, but it makes no difference. The banners show up like this, and my hero banner now cannoit be dleeted either, the option to do is removed. I am stumped!


