I want to display: none a section and replace an image for mobile…
Would take me under 2 minutes with CSS code, just don’t know where to find it. Crazy how developer mode gives you access to javascript… but not CSS
Someone please help.
Thank you,
-Daniel
1 Like
Wix works with Javascript and not CSS.
You can add html/css/js into a html iFrame/html component.
Also, when you say ‘replace an image for mobile’, do you want to have a different image on desktop device compared to a mobile device, as that is possible.
https://www.wix.com/corvid/reference/wix-window.html#formFactor
https://support.wix.com/en/article/corvid-tutorial-displaying-elements-in-mobile-only
https://support.wix.com/en/article/corvid-writing-code-that-only-runs-on-mobile-devices
There is no CSS at all with Wix? Holy wow… is there a way to use javascript to just replace the image on smaller devices? Is there a “display:none” function on javascript?
$w.onReady(function () {
$w("#event").onEvent(() => {
$w("#yourElement").hide();
})
});