Onclick tag in anchor does not work in wordpress
-
Hello everybody, I have a custom form in which there is a captcha, the captcha loads automatically on loading of page , but when I try to click on reload icon in anchor , it does not work, like that. I googled and found the solution to add ‘onclick’ attribute in function.php. So I created a function and added the code:
function allow_onclick_content() {
global $allowedposttags, $allowedtags;
$newattribute = ‘onclick’;
$allowedposttags[‘a’][$newattribute] = true;
$allowedtags[‘a’][$newattribute] = true;
}
add_action(‘init’, ‘allow_onclick_content’);
But Unluckily, it does not work like it should. Am I missing something ?
The reload function for onclick tag is written in script.js file . -
-
https://lashproacademy.staging.wpengine.com/salestap-partner-salon/?c=e38de74562d1
Reload button is not working properly on this page
-
Thanks for sharing the URL.
You are using the self-hosted version of WordPress, rather than WordPress.org.
Please post the inquiries about this website on the WordPress.org forums or try chatting with your hosting provider, the WP Engine.In addition, here is an article to help you understand the difference between the .com and .org versions of WordPress:
I hope this helps.
-
-
- The topic ‘Onclick tag in anchor does not work in wordpress’ is closed to new replies.