Support » Plugin: Progressive WordPress (PWA) » On Element Click

  • I was wondering if someone could walk me through the On Element Click code.

    I’m kind of an amateur when it comes to coding, and only know HTML and CSS.

    The “Normal” option doesn’t seem to be working for me, and is just spotty. It works occasionally but not always. And doesn’t work on some browsers? Maybe I’m wrong.

    But I would love to have a button that they can just click to prompt the Add to Home Screen.


    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Nico Martin


    Hi Anthoy

    First of all the Add to Homescreen prompt does not work on iOS devices. iOS does not yet support this kind of ptompt.
    If we take Chrome on Android for example they will check for the add to homescreen criterias and will then show the prompt. But if the user dismissed it once it won’t show up again (which majes sense).

    The “On Element Click” Setting accepts a CSS Selector. If you know HTML and CSS you could just target the element like you would target it with css. So if the button has the class my-button you could write .my-button.

    I hope that makes it a bit clearer.

    Kind regards,

Viewing 1 replies (of 1 total)
  • The topic ‘On Element Click’ is closed to new replies.