Hi !
I'm trying to have my event banner in the header collapsed based on one criterion.
Here's my code but it doesn't work :
if ($w("#text113").text .contains("Black Friday")) $w("#banniereEvent").collapse();
So basically there's an event banner in the header, and I want it to collapse if the user is browsing the current event page.
Thanks !
Please try to use the code below (the code should be inside an onReady function):
$w.onReady(function () { if ($w("#text113").text === "Black Friday") { $w("#banniereEvent").collapse() } });