Where to add Webmaster Tools meta tag in this header
-
Can someone please tell me where to place the meta tag to verify my site for Google webmaster tools. I have read the instructions but am unsure of exactly where it goes in this header. Many thanks if you can help me out.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>><head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –><link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<title><?php bloginfo(‘name’); ?> <?php wp_title(); ?></title><?php wp_head(); ?>
</head><body>
-
In between these two lines will be fine
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
not working///
can any body help please. Above suggestion is not working.
How is it not working? Anywhere between the <head> and </head> tags will be fine.
Same issue here. Would really appreciate some help. Looks like this right now but still unable to verify…
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”distribution” content=”global” />
<meta name=”robots” content=”follow, all” />
<meta name=”language” content=”en, sv” />
<meta name=”google-site-verification” content=”6c_hpPl1wMR03ixpUuKZtuZTEdkJo9tocbRlLA6NkzQ” /><title><?php if (function_exists(‘seo_title_tag’)) { seo_title_tag(); } else { bloginfo(‘name’); wp_title();} ?></title>
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />
<!– leave this for stats please –><link rel=”Shortcut Icon” href=”<?php echo get_settings(‘home’); ?>/wp-content/themes/whitespace/images/favicon.ico” type=”image/x-icon” />
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php wp_head(); ?>the place you have it is fine. in header.php under all the other meta things.
I usually always put mine under
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
in my WP installs
It depends on the theme header.php file. I’ve seen some that make it difficult to verify. Here is a video that shows you how to get it verified: Verify your WordPress Website in Google Webmaster Tools.
-Don
- The topic ‘Where to add Webmaster Tools meta tag in this header’ is closed to new replies.