I have had multiple issues occurring on my site that previously worked fine. I’m wondering if some of the recent Wix updates have caused issues with certain code syntax previously used…
Anyway, one of the functions that previously worked perfectly was the $w(#locationText) element - which opens the “Pretty River Academy (Sidebar)” lightbox when clicked - and also changes colour on hover. However, none of these events are firing. I have not changed this code since it was previously working so I have no idea what could be wrong. I would really appreciate any help!
Here is the code:
*I have removed other page code that I deemed irrelevant as it was too lengthy to add to this post
$w.onReady(function () {
$w("#programsRepeater").onItemReady(($item, itemData, index) => {
if (itemObj.status === "CONFIRMED") {
//Set program location
const itemLocation = itemObj.location;
const locationLink = itemObj.locationLink;
$w("#locationText").text = "All matches are held at " + itemLocation + ".";
$w("#locationText").onMouseIn((event) => {
let locationText = $w("#locationText").text;
$w("#locationText").html = "<p style='color:#ED5829; font-size:14px'>" + locationText + "</p>";
});
$w("#locationText").onMouseOut((event) => {
let locationText = $w("#locationText").text;
$w("#locationText").html = "<p style='color:#757575; font-size:14px'>" + locationText + "</p>";
});
$w("#locationText").onClick((event) => {
wixWindow.openLightbox("Pretty River Academy (Sidebar)");
});
}
});
});
Here is the link to the page if helpful: https://www.georgianbaysportsclub.com/programs
Thank you!