Quick Action Bar

Is it possible to hide the “Quick Action Bar” only from one page on my mobile?

This line not hide it:
$w(“#quickActionBar1”).hide();

Any update on this? I am having the same problem.

It can be done using collapse
$w(‘#quickActionBar1’).collapse();
Remember to put it in the
$w.onReady( function () {

Thanks Benny, but this hides it on ALL the pages.
What if I want to hide it only on one of the pages? A specific page?

@Prakesh
It doesn’t hide it on all pages as such. It hides it when you visit that page and in subsequent page loads it’s never unhidden (this does seem a lot like pedantry!). Anyway… Add this to the site tab of the code panel but change the path of the page for which the quick bar should be hidden. The above code is then unnecessary.

So ‘url-slug’ below would be for http://username.wixsite.com/sitename/url-slug

import wixLocation from ‘wix-location’;

$w.onReady(function()
{
if(wixLocation.path.length && wixLocation.path[0] === ‘url-slug’)
$w(‘#quickActionBar1’).collapse();
else
$w(‘#quickActionBar1’).expand();
});

1 Like

Thanks for sharing @lee1 this has saved my life! However, I can’t get this code to work with a dynamic page. Is there an alternative?