Hello, can someone help me? I want to change the colour of my slideshow button, along with the button text. My buttons in my entire shop is in green and cream colour except my slideshow. It’s in this awful black and white, and the actual colour i chose will only show up if i select “show container” but i dont want to have the container.
I have tried codes from other people asking the same question, but somehow i can only change either the background or the text, shopify wouldn’t change both of it.
1 Like
- Inside the “theme.scss.liquid” file, scroll down or use the search function (Ctrl + F or Command + F) to find the section that contains the CSS rules for the slideshow button. Look for a code block that resembles the following:
.slideshow__button {
/* Styles for the button background */
}
.slideshow__button-text {
/* Styles for the button text */
}
To change the background color of the button, add or modify the CSS property background-color
within the .slideshow__button
rule. For example, to set the background color to red, you can use the following code:
.slideshow__button {
background-color: red;
}
// To change the text color of the button, add or modify the CSS property color within the .slideshow__button-text rule. For example, to set the text color to white, you can use the following code
.slideshow__button-text {
color: white;
}
-
Identify the class or ID of the slideshow button element. You can inspect the button element using your browser’s developer tools to find the appropriate selector.
-
Once you have the selector, add the following code to your theme’s CSS file or the CSS editor in the Shopify admin:
/* Change the background color of the slideshow button */
.slideshow-button-selector {
background-color: #your-color;
}
/* Change the text color of the slideshow button */
.slideshow-button-selector span {
color: #your-color;
}
Replace .slideshow-button-selector
with the actual class or ID selector of the slideshow button element in your theme.
Replace #your-color
with the desired color value in hexadecimal, RGB, or color name format.
Hi @afternoonscent ,
I underdstand that you want to change the colour of your slideshow button, along with the button text. Here is some code that may help you.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “theme.scss.liquid” or “styles.scss.liquid” file, depending on which file your theme uses to store its CSS styles.
- At the bottom of the file, add the following CSS code:
- And Save.
.slideshow__text-wrapper.banner__content.banner__content--bottom-center.page-width.banner--desktop-transparent a {
color: #c49c6e;
background-color: springgreen;
}
NOTE: You can change the color you like just don’t delete the ;
Result:
I hope it help.
1 Like
I can’t find theme.scss.liquid or style.scss.liquid file. I only managed to find theme-editor.js under assests.
Can you check the base.css file?
Thanks!
i have added the code , but only my background changed. the text remained black )-,:
Can you check this code. Thanks!
slideshow-component.slider-mobile-gutter a {
color: brown;
}
do i put it under the code you’ve given without changing anything?
omg! i rechecked my code, and realised i added an extra # before the colour on the first code you gave me. it works! thank you so much!
You can change the color you want. And you can delete the color code on the first code that I give. If the background color is working on that selector then its good. Please delete this only
color: #c49c6e;
1 Like
oh! that may cause the problem.. Well codes are sensitive if they missing or you put more they wont work. Good to hear that. Happy to help. 
1 Like