Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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>