In Editor X, I have set a Vector Shape to trigger a Lightbox Menu. It sits in the header. When someone scrolls down the page, I want the vector shape to change colour. By looking at the Velo API I cannot find a way to change the styling colour of the vector shape.
Same thing with text. According to the API, I cannot change the colour styling of a âTextâ element. (I cannot add a âTextBoxâ element in Editor X - its called a âTextâ element in Editor X) https://www.wix.com/velo/reference/$w/text/type
The only way to format the text is using https://www.wix.com/velo/reference/$w/text/introduction#$w_text_introduction_formatting-text this code. However when I use this code, it messes up the styling of the text I customized using the Editor. Then I have to recode the styling. Why canât Wix make it easy to customize the styling of text and vector shapes like how easy it is for Buttons.
Smh Wix makes it so hard to do simple things. One issue after the next.
@russian-dima yes this will work, but the point is, Wix makes it harder to achieve something so simple. I donât get why it isnât built into the API so we can change the colour of the vector shape with one line of code. Now I have to hack it using an iframe and all sorts. Just how the API allows me to change the text or colour of a button in a simple fashion, the same should be for vector shapes and text elements. This is such a SIMPLE task and Velo makes it soooo much harder. Wish we had access to the CSS Stylehsheet or html like webflow allows. it would make it so much easier to customize this type of stuff. Instead I have to hack it with Javascript on Velo lol.