I cant figure out how to change the color of a single word in shopify css.. i tried all the solutions i could find on here..
On my main image banner in dawn i have written ‘‘RESILIENCE LONGEVITY & STRENGTH. PINE POLLEN’’ I only want pine pollen to be yellow. Can anyone enlighten me? thank you.
Its another problem i have.. I want to be able to put some spaces between sentences on some text content on other image banners (using Shift + Enter). It only seems possible with the type of text box that is on the screen shot you shared (with the text tools on top).
If you like to put some space between “STRENGTH. PINE POLLEN” if you like to locate down the PINE POLLEN add “STRENGTH. PINE POLLEN”. I hope it help.
Hi Ribe, I still cant get the single word to change color even if i follow what you suggested.. Like i said my text box isnt the same as yours. do you have an idea what else i could try?
Hello, Oh I thought you already did with harsita’s solution. I have another solution you can try.
You can edit the The text right? Can you write only the “RESILIENCE LONGEVITY & STRENGTH.”. Then add this code.
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:
Hi Ribe, it worked but i have my website translated in french. Since this way of coding genericaly drops “Pine pollen” ant the end of the header it dosent translate it in the french version.
I understand i need to create a style in base.css and the use span to let it know what word i want to have assigned to the style.
Could you help my smooth brain understand how to code that style in my base.css and how to assign a word to that style.
in case anyone is still having trouble colorizing individual words in your theme, I got so tired of trying different workarounds that I decided to build my own app for it. It’s straightforward, free, and might make your life a bit easier.