OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Hook Wordpress contact form - no plugin

  • Thread starter Thread starter zurita
  • Start date Start date
Z

zurita

Guest
How can I link a button id so it shows a contact form pop up when clicking? And how do I put it in my function.php archive? Thanks!

I tried this code that I saw on the internet but it doesnt work.

`jQuery('discount').on('click', function () { PUM.open(7e807f9); });

` Also tried with addEventlistener, but it didn't work either. Anyone can show me how to do it, please?

<p>How can I link a button id so it shows a contact form pop up when clicking? And how do I put it in my function.php archive? Thanks!</p>
<p>I tried this code that I saw on the internet but it doesnt work.</p>
<p>`jQuery('discount').on('click', function () {
PUM.open(7e807f9);
});</p>

`
Also tried with addEventlistener, but it didn't work either. Anyone can show me how to do it, please?
 
Top