• Frank

    (@fwusquare2com)


    Hello, my client requested that we add a supplied Google Site Verification meta tag to the <head> of the site before the </head> tag. After adding the meta tag to the theme header.php, I realized that Age Gate would not load the theme template under after the age has been verified thus the site can’t be verified by Google’s systems. Other than deactivating the Age Gate plugin, is there any way I can add the required meta tag to the <head> of the Age Gate page?

    Regards,
    Frank

Viewing 1 replies (of 1 total)
  • Plugin Author Phil

    (@philsbury)

    Hi Frank,

    I think the best way would be to hook into the wp_head itself. In your themes functions.php you could do the following:

    function google_site_verify(){
    	echo '<meta name="google-site-verification" content="String_we_ask_for">';
    }
    
    add_action('wp_head', 'google_site_verify');

    Then as long as your header.php is calling wp_head() it’ll appear in your regular pages and the age gate as well

    Thanks
    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Age Gate preventing Google Site Verification?’ is closed to new replies.