Why doesn't my mute/unmute button work in custom script?

Topic summary

Main issue: A mute/unmute button click is supposed to run a script, but nothing happens.

Context: Store Design > customizations, HTML. The user wants a click-triggered script for a mute/unmute icon.

Details provided: The post references a code block, but the markup/script shown is empty in the message. The central code needed to diagnose the problem is missing.

Current status: No solutions or troubleshooting steps appear. No opposing views or additional inputs. The discussion remains unresolved.

Key gaps blocking progress:

  • The actual HTML/JS for the button and event handler is not visible.
  • No console errors or environment details are provided (e.g., where the script is loaded, theme files, or timing of script execution).

Action needed: Share the complete code (HTML for the button/icon and the JS handling click/mute state), any console errors, and where/how the script is included to enable diagnosis.

Summarized with AI on January 4. AI used: gpt-5.

Hi, I want to run a script when I click on a button


It doesn’t do anything when I click on mute/unmute icon. what’s wrong with this code?