Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1222007

    Hi
    When we use reCaptcha v3 for our Enfold contact forms, there is shown the following text under the contact form:
    “reCAPTCHA geschützt und es gelten die Google Datenschutzerklärungen und Nutzungsbedingungen”
    This is very good. The only problem is, that the links to Datenschutzerklärung (data protection) and Nutzungsbedingung (terms of use) are opened in the same tab.
    Is it possible to do something, that this links are opened in a new tab? Would be nice, if the solution will work for every contact form on a website, not only on one page.
    Thanks very much.
    Best regards
    Mike

    #1223693

    Hey Mike,

    Sorry for the late reply!

    Please add following code to bottom of functions.php file in Appearance > Editor

    add_filter('avf_google_recaptcha_badge_content','avf_google_recaptcha_badge_content_mod');
    function avf_google_recaptcha_badge_content_mod($badge){
    			$badge =	'<div class="av-google-badge-message hidden">';
    			$badge .=		__( 'This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy" target="_blank">Privacy Policy</a> and <a href="https://policies.google.com/terms" taget="_blank">Terms of Service</a> apply.', 'avia_framework' );
    			$badge .=	'</div>';
    	
    	return $badge;
    }
    

    Best regards,
    Yigit

    #1223771

    Hi Yigit
    Thanks for your response.
    It works fine ;-)
    You can close this issue.
    Best regards
    Mike

    #1223873

    Hi,

    You are welcome, Mike! Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google links with target _blank’ is closed to new replies.