Variable in theme. What's wrong ?

hi everyone Several hours spent trying to understand why it doesn't work! Following the menus, I want to change the look of a différent button (the last one in fact). {{cssrevenir}} is, for example, the string choice2. When I write manually, it works (aka > [data-itemid="choice2"]) But with the variable {{cssrevenir}}, nothing.
[data-itemid={{cssrevenir}}] { background-color: rgba(235,235,235, 0); color : rgba(45, 70, 205, 1); font-weight: 400; border-radius: 12px; border-color: rgba(246, 239, 220, 0); box-shadow: rgba(0, 0, 0, 0) 2px 3px 6px !important; }
I've tried [data-itemid="{{cssrevenir}}"] and to put " in {{cssrevenir}} like "choice2"
4 Replies
Baptiste
Baptiste11mo ago
Where do you write this? In Custom CSS? It does not support variable parsing
sebastien_ashm
sebastien_ashmOP11mo ago
Yes, in Custom CSS. There is a button at the bottom to choose a variable. How can I use it to a dynamique css ? With the whole CSS ?
Baptiste
Baptiste11mo ago
That's an error, removing it now. Custom CSS can't be variabalized
sebastien_ashm
sebastien_ashmOP11mo ago
👍

Did you find this page helpful?