How to make Slideshow background transparent? (Sense Theme)

Solved
HBEE63
Tourist
11 0 1

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/

Screenshot 2023-11-14 at 12.25.11 PM.png

Accepted Solution (1)
Spac-es
Shopify Partner
160 37 53

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>

 

View solution in original post

Replies 5 (5)
Spac-es
Shopify Partner
160 37 53

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:Captura de pantalla 2023-11-14 213629.png

HBEE63
Tourist
11 0 1

Thank you so much for reply - do I add to the end of theme.liquid? after </html>? or before that?

Spac-es
Shopify Partner
160 37 53

inside the <body> containerCaptura de pantalla 2023-11-15 164135.png

 

At the end of the code there should be no problem.

HBEE63
Tourist
11 0 1

I tried but I don't see any changes. I did it under the "theme.liquid" should it have been in the "slideshow.liquid"?

 

Screenshot 2023-11-16 at 1.05.55 PM.png

Spac-es
Shopify Partner
160 37 53

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>