Google Webmaster Tool
-
Exactly where are you supposed to enter the code ? They say into your site’s homepage but exactly which php is that supposed to be ?
Here are the instructions given;
Copy the meta tag below, and paste it into your site’s home page. It should go in the <head> section, before the first <body> section.
-
Now I see “theme files” on the right side.
right, you should see the theme files. You are in the right place. Usually the css file loads first automatically. You can click on the header.php over on the right side to load it
Okay, I have tried placing it directly after the open header and then right after the body, but it will not verify.
Here’s what I see:
<!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’); ?>” /><title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<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 Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /><style type=”text/css” >
<?php
global $variation_css, $options;
print $variation_css;// IE hack opacity options
print $options[‘header-color-ie’].”\n”;
print $options[‘top-color-ie’].”\n”;
print $options[‘content-color-ie’].”\n”;
print $options[‘bottom-color-ie’].”\n”;
print $options[‘left01-color-ie’].”\n”;
print $options[‘right01-color-ie’].”\n”;
print $options[‘right02-color-ie’].”\n”;?>
</style><?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php wp_head(); ?>
</head>
<body><div class=”sitewrapper”>
<div class=”headermeta_right”>
<span class=”bgtextcolor”>
<?php print stripslashes($options[‘headerright’]);if (current_user_can( ‘publish_pages’ )) print “Dashboard“;
if (current_user_can( ‘edit_themes’ )) print ” | Design“;if (current_user_can( ‘edit_posts’ )) {
print ” | “;
print wp_get_current_user()->display_name.”“;
}if ($options[‘headermeta’] == “on”) {
if (is_user_logged_in() == ‘true’) print ” – “;print wp_loginout(”,”).””;
}
?>
</span>
</div>
<div class=”headermeta_left”>
<span class=”bgtextcolor”>
<?php print stripslashes($options[‘headerleft’]); ?>
</span></div>
</div>
<div class=”headerwrapper”>
<div class=”page_top”></div>
<div class=”page_main”>
<div id=”header”>
<div class=”headerblock” onclick=”location.href='<?php echo get_option(‘home’); ?>’;” style=”cursor: pointer;”>
<div class=”headertext”>/”><?php bloginfo(‘name’); ?></div>
<div class=”description”><?php bloginfo(‘description’); ?></div>
</div>
</div>
</div>
</div><div class=”sitewrapper”>
<div class=”page_main”>
<div class=”block_foreground”><hr />
I always put mine after this line:
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />It worked!!! Thanks so very much! You’re a doll!
>:D
glad we got it sorted out!
Google also has an option to add a file to the root of your site and then your Theme does not need to be edited. That is the option I choose as I did not want to get into my Theme files. You need FTP access to place the file.
The add a file option was a bit hidden as I remember.
Google also has an option to add a file to the root of your site
I used to have so many problems with that adding a file business… I’ll admit, it’s beena couple years since I tried it. I can’t even recall the issue, but something about permissions and the file being inaccessible, etc. I dunno if its even an issue anymore, or if I was just not so smart…..
Small sample – worked 1 out of 1 times for me about 6 weeks ago.
The topic ‘Google Webmaster Tool’ is closed to new replies.