Hide Whatsapp button on certain page

I am trying to hide the Whatsapp button from the Quick Action Bar on a specific page on mobile. This is the code I wrote for this:

import wixWindow from 'wix-window';
$w.onReady(function () {
    if(wixWindow.formFactor === "Mobile"){
        $w('#quickActionBar1').hide();
    }
});

It is not working. Is it possible to hide it?
Thanks!

Normaly you should have the opertunity to hide or collapse it…
https://www.wix.com/velo/reference/$w/quickactionbar

Did you check if your formfactor-output is the right one?

Add this to your current code and run it again. Take a look onto CONSOLE!

if(wixWindow.formFactor==="Mobile"){$w('#quickActionBar1').hide();}
else {console.log("Nope!!! I do not want to be hidden!");}

Still without any idea and success? → Try to → COLLAPSE ← instead of → HIDING!

@russian-dima collapse did the trick! Thank you very much! :slight_smile:

No problem! Good luck!