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

Check out our calendar of events

See Calendar

Latest Posts In Tools

  • Traditional Hedgelaying Tools: A guide to their use and benefits

    Discover the essential tools for hedgelaying, from traditional billhooks and vintage axes to modern chainsaws. Learn about their uses, benefits, and maintenance, including tips on making a beadle and restoring vintage tools. Perfect for…