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

Testimonials

Customer Comments