Hey there. Looking to change the color of individual icons in a row of 'em with CSS. Using the lovely Shapes theme (preview here). I can change all the icons with:
.feature-icon-list {
color: white;
}
OR
.text-scheme-text {
color: white;
}
OR
.theme-icon {
color: white;
}
But can’t figure out how to target individuals.
I’ve tried all of the nth-child options I can think of at various levels but I’m a CSS rookie. Help please!
Hey there; it’s the icons in the icon list block - which is all the way at the bottom of the homepage on the preview link in my original post. I’d like to be able to make 'em the rainbow of theme colors, instead of just a single color. This theme allows you to add custom CSS just for individual sections, so I could target just that one instance of the icon list block.
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 “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
#icon-row-template--15779163734155__2c0e94c0-d22b-4966-95f3-82f1fff58385 > li:nth-child(1) > div > span > svg {
color: red
}
#icon-row-template--15779163734155__2c0e94c0-d22b-4966-95f3-82f1fff58385 > li:nth-child(2) > div > span > svg {
color: blue;
}
#icon-row-template--15779163734155__2c0e94c0-d22b-4966-95f3-82f1fff58385 > li:nth-child(3) > div > span > svg {
color: yellow;
}
And Save.
If is not working just add !important.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!