Home > Back-end >  Wordpress: Add Google Tags to website's home page
Wordpress: Add Google Tags to website's home page

Time:09-23

I want to edit my website's home page.

To add Google Tag <meta name="google-site-verification" content="************" />

But I can't find out home page HTML in WordPress. All I see is Wordpress/Elementor page editor, which allows me to edit blocks but not top <html> tags.

How can I do that? I don't have CPanel/FireZilla Access.

CodePudding user response:

in fuction.php your theme add this

add_action( 'wp_head', 'google_verification', 1);
function google_verification() {
    echo '<meta name="google-site-verification" content="************" />', "\n";
}

CodePudding user response:

in WordPress dashboard Appearance-->Theme editor -->Header.php file(if exists) copy the code and paste in between .then update

  • Related