Hide Footer on Wix Classic Editor Pages

I have pages where I want to have only a header and not a footer. I tried to hide the footer in Velo using the following code but it didn’t work. What am I doing wrong?

$w.onReady (function () {
//Hides the element when the page loads
$w(“#footer1”).hide();
});

BTW…I did the “add a strip to the top” thing, and there isn’t a setting that allows the strip to scroll with the page like a header does so having an option to have a page with a header and no footer would be an amazing feature.

Old code for hiding showing header, try to do it this way with footer…

$w.onReady(function () {});

 

export function button1_click(event) {hide_Header()}

function hide_Header() {$w("#header1").children.forEach((item, i) => {item.collapse();})}

 

function show_Header() {$w("#header1").children.forEach((item, i) => {item.expand();})}

export function button2_click2(event) {show_Header()}

NOT TESTED!