Hello
I’m creating my first website on Wix editor, and i need to code on button click (column / strip photo background) to open in same window new link.
I have zero coding skills tho, and i tried searched hard to figure it out. But to no success…
Any help is appreciated, thank you
You need to elaborate on your question in your post, like what you actually trying to do with the button, are you simply wanting to change the element background with a button?
You can do that with code through the Wix API Reference for Background.
https://www.wix.com/corvid/reference/$w.Background.html
I’m sorry if it’s not clear.
I’ll try explain better.
I have a strip with 2 columns, these columns have background photos set to them. I’m trying to find out a way to code on click command on this column to open a local link on my site.
I hope it’s clearer now.
You can just put in a transparent box element into each column in your strip making sure that it covers roughly the whole background and also making sure that it is attached to that column, see here for more info about attaching.
https://support.wix.com/en/article/attaching-elements-to-a-column-on-your-strip
https://support.wix.com/en/article/attaching-elements-to-a-box
Then you can simply set that transparent box element to be linked to whatever page link you want through the elements link settings in the Wix Editor itself.
https://support.wix.com/en/article/adding-a-link-to-an-element-425878
If you want to do it through code, then have a look at this previous forum post about it.
https://www.wix.com/corvid/forum/community-discussion/linking-a-strip-column-to-external-url
Thanks a million GOS, very appreciate your help!
I’ll try the transparent button as it is much easier than coding for me 