المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ووردبريس Wordpress اخفاء how to hide protected by reCAPTCHA



Rise Company
22-01-2020, 11:40
ووردبريس Wordpress اخفاء how to hide protected by reCAPTCHA
reCAPTCHA logo turn off- Remove re-captcha badge from all pages of website
reCaptcha badge on ALL pages, not just pages with Contact Forms!
Disable recaptcha v3 for all pages EXCEPT the one with a contact7 form
How do I hide reCAPTCHA v3 badge?

https://www.rise.company/upload/uploads/157968626909641.jpeg


The new plugin update has caused the v3 “invisible” recpatcha to show up on all pages, even one ones without a contact7 form. Is there a setting to disable this? Or can this be fixed?

منذ شهر ديسمبر 2019 الاصدار الجديد من reCAPTCHA type:v3 اصبح الان مخفي ويعتمد على score
ويضع بادج فى اسفل الموقع على اليمين, ولاخفاء البادج اتبع الاتى :

--------------------------------
فى حالة الرغبة فى اخفائها عن جميع الصفحات
--------------------------------

ضع هذا الكود فى css


.grecaptcha-badge {
display: none !important;
}

او


.grecaptcha-badge {
visibility: hidden;
}


Note if you set the CSS to “display:none” it BREAKS the functionality. Instead, use “visibility: hidden” or “opacity: 0”

--------------------------------
فى حالة الرغبة فى اظهارها / اخفائها عن صفحات محددة
--------------------------------

داخل function.php فى child ضع هذا الكود

//Remove Google ReCaptcha code/badge everywhere apart from select pages
add_action('wp_print_scripts', function () {
//Add pages you want to allow to array
if ( !is_page( array( 'contact','some-other-page-with-form' ) ) ){
wp_dequeue_script( 'google-recaptcha' );
//wp_dequeue_script( 'google-invisible-recaptcha' );
}
});