is there a way to hide elements on desktop and show only on mobile?
Hi Citisonship you can write something like this
$w.onReady(function () {
if(wixWindow.formFactor === "Mobile"){
$w('#button31').show();
}
Thanks Geo! I get the error… wixWindow is undefined
import wixWindow from 'wix-window';
$w.onReady(function () {
if(wixWindow.formFactor === "Mobile"){
$w('#button31').show();
}
});
perfect, thanks my friend!