GDPR Checkbox not working
-
Hi,
i am using this Plugin for social comments.
The option to set a checkbox for the GDPR is nice. But the Buttons can always be clicked, even if the checkbox is not checked. The a-tag “disabled” is ignored by Chrome or Firefox.
I have a (my) solution:
I changed the line 65 from class-mo-openid-login-widget.php the to$gdpr_setting = "class='mo-disabled'";I added `.mo-disabled {
pointer-events:none;
}` in the mo_openid_style.cssI added in the social_login.js `jQuery(“div.mo-openid-app-icons > input”).click(function () {
if(jQuery(this).is(‘:checked’)){
jQuery(‘div.mo-openid-app-icons > a’).removeClass(‘mo-disabled’);
}
else {
jQuery(‘div.mo-openid-app-icons > a’).addClass(‘mo-disabled’);
}
});`If the checkbox is not checked, the buttons can’t be clicked.
Or is there another reason/solution why this was not working?
Best regards,
HarryThe page I need help with: [log in to see the link]
The topic ‘GDPR Checkbox not working’ is closed to new replies.