All things Shopify and commerce
Every time I go in the custom CSS in the theme editor and enter a hex code, it works just fine. I then try to enter RGBA for the purpose of adjusting the opacity of a potentially transparent overlay that would darken a background image, and it will not work. It doesn't even let me save it if I put it in the page's JSON file.
HI @CricketRecords ,
It seems like the issue might be related to the theme editor's handling of certain CSS syntax. The RGBA function should normally work in both the custom CSS and JSON file, but some Shopify themes might not support it directly in the theme editor or JSON settings.
Here are a few things you can try:
.overlay {
background-color: rgba(0, 0, 0, 0.5); /* Adjust transparency */
}
3. Use HEX with transparency: Some Shopify themes may only accept HEX codes in their JSON settings. You can try using an 8-character HEX code where the last two characters represent transparency. For example:
"background-color": "#00000080" /* 80 is 50% transparency */
This represents black with 50% opacity.
Here are a few suggestions for you. Hope it helps.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By 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, 2024