Disable element on 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.