Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can add it whenever you want (but in the best way you can add it in the tag <head> of the page, where you want to add the pop-up).

Expand
titleThen, add it into  <script> on your page:

<script>

 document.addEventListener('DOMContentLoaded', function(){

    document.getElementsByClassName("w-entry-point")[0].addEventListener(

      'click', showPopup, false

    );  

  });

  

  function showPopup(evt) {

    if(evt) {

      Swal.fire({

        icon: 'warning',

        title: 'Please note, patterns are based on a 108" high wall.',

        customClass: {

            container: 'my-swal'

        }

      })

    }

  }

</script>

...