document.querySelectorAll('.header-nav--parent').forEach(li => {
  const toggle = li.querySelector('.brx-submenu-toggle');
  if (!toggle) return;

  const a = toggle.querySelector('a');
  const button = toggle.querySelector('button');
  if (!a || !button) return;

  // Move the label text into the button (prepend before the SVG)
  const labelText = document.createTextNode(a.textContent);
  button.prepend(labelText);

  // Remove the <a> tag
  a.remove();
});
  // Open Popup ID 1058 if any element with .header--nav__button
document.querySelectorAll('.header-nav-button').forEach( (el) => {
	el.addEventListener('click', () => {
		bricksOpenPopup(XXX)
	})
})

Tag: Wattle Hurdle Training Courses

  • August 7, 2023
    Outdoor Experiences in September! Enjoy the remainder of the Summer outdoors in picturesque surroundings participating in an Experience you will…