Shopify themes, liquid, logos, and UX
Hi,
Im using the sense theme and looking to make the background transparent. See ref photos below. Any help would be much appreciated, thank you.
Website: https://www.forloveandfries.com/
Solved! Go to the solution
This is an accepted solution.
We can try your alternative.
Add the following code inside your slideshow.liquid (at the end):
<style>
:root {
--color-background: transparent;
--gradient-background: transparent;
--color-foreground: transparent;
--color-background-contrast: transparent;
--color-shadow: transparent;
--color-button: transparent;
--color-button-text: transparent;
--color-secondary-button: transparent;
--color-secondary-button-text: transparent;
--color-link: transparent;
--color-badge-foreground: transparent;
--color-badge-background: transparent;
--color-badge-border: transparent;
--payment-terms-background-color: transparent;
}
</style>
Add this code to your theme.liquid:
{% if template == 'slideshow' %}
<style>
:root {
--color-background: transparent;
--gradient-background: transparent;
--color-foreground: transparent;
--color-background-contrast: transparent;
--color-shadow: transparent;
--color-button: transparent;
--color-button-text: transparent;
--color-secondary-button: transparent;
--color-secondary-button-text: transparent;
--color-link: transparent;
--color-badge-foreground: transparent;
--color-badge-background: transparent;
--color-badge-border: transparent;
--payment-terms-background-color: transparent;
}
.slider-counter {
display: none;
}
</style>
{% endif %}
Result:
Thank you so much for reply - do I add to the end of theme.liquid? after </html>? or before that?
inside the <body> container
At the end of the code there should be no problem.
I tried but I don't see any changes. I did it under the "theme.liquid" should it have been in the "slideshow.liquid"?
This is an accepted solution.
We can try your alternative.
Add the following code inside your slideshow.liquid (at the end):
<style>
:root {
--color-background: transparent;
--gradient-background: transparent;
--color-foreground: transparent;
--color-background-contrast: transparent;
--color-shadow: transparent;
--color-button: transparent;
--color-button-text: transparent;
--color-secondary-button: transparent;
--color-secondary-button-text: transparent;
--color-link: transparent;
--color-badge-foreground: transparent;
--color-badge-background: transparent;
--color-badge-border: transparent;
--payment-terms-background-color: transparent;
}
</style>
User | RANK |
---|---|
210 | |
166 | |
70 | |
55 | |
53 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023