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)
	})
})

Author: lorraine

  • September 12, 2024
    The Benefits of Hedgelaying: Tradition, Biodiversity, and Sustainability Hedgelaying is an ancient countryside craft that dates back centuries, with its…
  • April 5, 2024
    Wattle hurdles embody a craft deeply rooted in the pastoral traditions of Britain, having served both functional and aesthetic purposes…
  • October 31, 2023
    Come and join us at one of our indoor or outdoor experiences in November, we have plenty of choices available…
  • September 18, 2023
    The first hedgelaying competition of the season took place last weekend during the West Grinstead Ploughing Match & Show held…
  • September 15, 2023
    I (Lorraine) am delighted to be able to invite my corporate followers to join us for an immersive showcase launch…