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

Re: How to make Slideshow background transparent? (Sense Theme)

Solved

How to make Slideshow background transparent? (Sense Theme)

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
408 119 155

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>

 

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!

View solution in original post

Replies 5 (5)

Spac-es
Shopify Partner
408 119 155

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

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!
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
408 119 155

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

 

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

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!
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
408 119 155

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>

 

Any donation is welcome! https://www.buymeacoffee.com/spacescoffee Thanks in advance!