How to set color to a Smarty variable?
-
13-04-2021 - |
Solution
What does the surrounding HTML look like?
If you cannot edit the HTML to add classes you could use :nth selector to select that second span tag, ie.
.surrounding-div span:nth-child(2) {color: red;}
Or if there are multiple span elements you could get more specific like this:
.surrounding-div span[title^="Payment"]:nth-of-type(2) {color: red;}
If you provide more of the template HTML it would be easier to answer more accurately.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange