Mega Menu Help

To add…on all pages except for /test-mega-page, I am getting “x” is not a valid selector error. I added comments in the code from the Home Page


// The code in this file will load on every page of your site

$w.onReady(function () {
 // Write your code here
});
//testBox1 is not a valid selector error
export function testButt1_mouseIn(event,$w) {
    $w('#testBox1').show();
}

//testBox1 is not a valid selector error
export function testButt1_mouseOut(event,$w) {
    $w('#testBox1').hide();
}
export function testBox1_mouseIn(event,$w) {
    $w('#testBox1').show();
}
export function testBox1_mouseOut(event,$w) {
    $w('#testBox1').hide();
}


//"ALL" is not a valid selector error
export function button16_mouseIn(event) {
    $w("#featureBox1").show();
    $w("#coffeeBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide()
 
}

//"ALL" is not a valid selector error
export function button17_mouseIn(event) {
    $w("#coffeeBox1").show(); 
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide()

}

//"ALL" is not a valid selector error
export function button22_mouseIn(event) {
    $w("#groceryBox1").show();
    $w("#featureBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide()
}

//"ALL" is not a valid selector error
export function button23_mouseIn(event) {
    $w("#huntBox1").show();
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide() 
}

//"ALL" is not a valid selector error
export function button24_mouseIn(event) {
    $w("#campBox1").show(); 
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide() 
}

//"ALL" is not a valid selector error
export function button21_mouseIn(event) {
    $w("#merchBox1").show(); 
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide() 
}

//"ALL" is not a valid selector error
export function button20_mouseIn(event) {
    $w("#gamesBox1").show(); 
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#storeBox1").hide()
    $w("#clearBox1").hide() 
}

//"ALL" is not a valid selector error
export function button19_mouseIn(event) {
    $w("#storeBox1").show(); 
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#coffeeBox1").hide()
    $w("#clearBox1").hide()
}

//"ALL" is not a valid selector error
export function button18_mouseIn(event) {
    $w("#clearBox1").show();
    $w("#featureBox1").hide()
    $w("#groceryBox1").hide()
    $w("#huntBox1").hide()
    $w("#campBox1").hide()
    $w("#merchBox1").hide()
    $w("#gamesBox1").hide()
    $w("#storeBox1").hide()
    $w("#coffeeBox1").hide() 
}


export function aboutBox1_mouseIn(event,$w) {
    $w('#aboutBox1').show(); 
}
export function aboutBox1_mouseOut(event,$w) {
    $w('#aboutBox1').hide(); 
}

//aboutBox1 is not a valid selector
export function aboutButton1_mouseIn(event,$w) {
     $w('#aboutBox1').show(); 
}

//aboutBox1 is not a valid selector
export function aboutButton1_mouseOut(event,$w) {
     $w('#aboutBox1').hide(); 
}