• Here is a common fix for inserting your hyperlink into a checkbox. Just remove comments down below (/* */), change out all of your own values, and place script in the body of your HTML page.

    /*

    <script>

    // Generate anchor element and insert after span element
    const yourSpanElement = document.querySelector(‘.yourSpanClass .wpcf7-list-item-label’);
    yourSpanElement.insertAdjacentHTML(‘afterend’, ‘place your anchor element here’);

    </script>

    */

    • This topic was modified 5 years, 5 months ago by kfriedman.
    • This topic was modified 5 years, 5 months ago by kfriedman.
  • The topic ‘Inserting Hyperlink into checkbox: JS solution’ is closed to new replies.