const activeYear = monthMatch[1]; const activeMonth = monthMatch[2];

const cells = document.querySelectorAll('td.tribe-events-calendar-month__day[data-js="tribe-events-month-grid-cell"]');

cells.forEach((cell) => { const label = cell.getAttribute("aria-labelledby"); if (!label) return;

const dateMatch = label.match(/(d{4})-(d{2})-(d{2})$/); if (!dateMatch) return;

const cellYear = dateMatch[1]; const cellMonth = dateMatch[2];

if (cellYear === activeYear && cellMonth === activeMonth) { cell.classList.remove( "tribe-events-calendar-month__day--other-month", "tribe-events-calendar-month__day--next-month", "tribe-events-calendar-month__day--past-month" );

cell.querySelectorAll(".tribe-events-calendar-month__day-cell").forEach((dayCell) => { dayCell.classList.remove( "tribe-events-calendar-month__day-cell--other-month" ); }); } }); }

fixTecMonthView();

/* Re-run after AJAX navigation if month view updates dynamically */ document.addEventListener("tec-view-loaded", fixTecMonthView); document.addEventListener("tribe_ev_ajaxSuccess", fixTecMonthView); });

Events

Views Navigation

Event Views Navigation

Today