Hi there
I’m Using Wix Challenges and I need to have an element (box) on my https://www.ayurvedaroom.ch/challenge-page/caf51726-88e6-48b1-9b16-c85a6737d0e6/ page.
But I don’t want to have it on the https://www.ayurvedaroom.ch/challenge-page/caf51726-88e6-48b1-9b16-c85a6737d0e6/payment page, which is part of the challenge-page.
Can I disable a element with code on a specific url?
Disable an element as in not show it or make it non-operable? I assume its the former as you just say ‘box’, you can probably do something like the following and put it inside your onReady or onChange.
if(wixLocation.Path === ???){
$w('box').collapse()
}
.hide() will leave empty space so I assume .collapse() will be the better option for you, although you’ll have to be the judge of that.
If you want to just make the box element non-operable, you can probably put lay a box on top of that box element and then do .show() when you want the user to be unable to interact with the box underneath.