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: e-innovate

  • April 4, 2022
    At the beginning of 2022, I was invited to Priory Farm Estate to learn more about their vision for the…
  • March 3, 2022
    February and March, just before Spring has sprung into life is a perfect time of year to work with Living…
  • February 27, 2020
    If you pick up a copy of “My Weekly Special” you will see that I have been featured in the…
  • January 20, 2020
    If you pick up a copy of January 2020 Surrey Life magazine you will see Paul and our business featured…