WordPress.org

Forums

Google Webmaster Tool (25 posts)

  1. Dbo
    Member
    Posted 5 years ago #

    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.

  2. Samuel B
    moderator
    Posted 5 years ago #

    look in your theme's header.php and you will see the <head> tag
    put it somewhere after that with the other meta tags

  3. Dbo
    Member
    Posted 5 years ago #

    Samboll, I tried what you said and it didn't work. It said the following;

    We weren't able to verify your site: http://www.triplecz.com/

    I put it like this;

    <?php wp_head(); ?>
    </head>
    <meta name="verify-v1" content="(number goes here)=" />
    <body>

    <!-- Page -->
    <div id="page"><div id="page-top"><div id="page-bottom">

    <!-- Header -->
    <div id="header">

    <!-- Title -->
    <div id="header-info">

    Was this the wrong way to insert it ?

  4. Nutrawee
    Member
    Posted 5 years ago #

    It must be

    <head>
    .....
    <meta name="verify-v1" content="(number goes here)" />
    </head>
  5. Dbo
    Member
    Posted 5 years ago #

    There isnt an ending </head> tag, here is my header info;

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="; charset=" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <!-- 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 Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css" />

    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style_ie.css" />
    <![endif]-->

    <?php wp_head(); ?>
    </head>
    <body>

    <!-- Page -->
    <div id="page"><div id="page-top"><div id="page-bottom">

    <!-- Header -->
    <div id="header">

    <!-- Title -->
    <div id="header-info">
    <h1>/"></h1>
    <div class="description"></div>
    </div>
    <!-- /Title -->

    <!-- Menu -->
    <div id="header-menu">

      <?php if (is_home()) { ?>
      <li class="current_page_item">/">Home
      <?php } else { ?>

    • /">Home
    • <?php } ?>
      <?php wp_list_pages('title_li=&depth=-1'); ?>

    </div>
    <!-- /Menu -->

    <!-- Feed -->

    <!-- /Feed -->

    <!-- Feed2 -->

    <!-- /Feed2 -->

    <!-- Feed3 -->
    <div id="header-feed1">

    </div>
    <!-- /Feed3 -->

    </div>
    <!-- /Header -->

    <!-- Main -->
    <div id="main">

  6. Samuel B
    moderator
    Posted 5 years ago #

    there won/t be an ending </head>in the header - that is in footer.php
    Code should work where you placed it.
    ??

  7. Dbo
    Member
    Posted 5 years ago #

    I dont know why this is happening, I read the following page also; http://www.google.com/support/webmasters/bin/answer.py?answer=35638&hl=en

    Didn't change much.

    What if I wanted to use the HTML one, where would the following go ?;

    google(bunch of numbers and letters here).html

  8. doc4
    Member
    Posted 5 years ago #

    Dbo,

    From the code you posted the ending head tag "</head>" appears just before the "<body>" tag here:

    <?php wp_head(); ?>
    </head>
    <body>

    This is correct. What I'm not seeing is a beginning head tag "<head>" so try replacing the beginning of the code with this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <!-- Start the Head Tag Here-->
    <head profile="http://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="; charset=" />
    
    <!-- Google Verify -->
    <meta name="verify-v1" content="(number goes here)" />

    Then the rest of the code follows.

  9. Dbo
    Member
    Posted 5 years ago #

    Well doc4, what you said worked perfectly. One thing though, as soon as I put it my wallpapers section which uses the next gen gallery completely stopped working.. :/ any idea why ?

    I reverted back to the old code hoping it would fix the problem but it didn't. Here's the new code that I used;

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <!-- Start the Head Tag Here-->
    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="; charset=" />

    <!-- Google Verify -->
    <meta name="verify-v1" content="(number goes here)=" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <!-- 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 Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css" />

    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style_ie.css" />
    <![endif]-->

    <?php wp_head(); ?>
    </head>

    <body>

    <!-- Page -->
    <div id="page"><div id="page-top"><div id="page-bottom">

    <!-- Header -->
    <div id="header">

    <!-- Title -->
    <div id="header-info">
    <h1>/"></h1>
    <div class="description"></div>
    </div>
    <!-- /Title -->

    <!-- Menu -->
    <div id="header-menu">

      <?php if (is_home()) { ?>
      <li class="current_page_item">/">Home
      <?php } else { ?>

    • /">Home
    • <?php } ?>
      <?php wp_list_pages('title_li=&depth=-1'); ?>

    </div>
    <!-- /Menu -->

    <!-- Feed -->

    <!-- /Feed -->

    <!-- Feed2 -->

    <!-- /Feed2 -->

    <!-- Feed3 -->
    <div id="header-feed1">

    </div>
    <!-- /Feed3 -->

    </div>
    <!-- /Header -->

    <!-- Main -->
    <div id="main">

    If it helps any, the gallery plugin requires me to call in the footer in footer.php with the following;

    <?php wp_footer(); ?>

    I hope we can fix this problem..

  10. Dbo
    Member
    Posted 5 years ago #

    bump for a possible solution to this...

  11. doc4
    Member
    Posted 5 years ago #

    dbo,

    Sorry for the late response. I checked the site and the gallery seems to be working in Firefox 3. Are you still needing assistance with this. Nice pics by the way.

  12. Dbo
    Member
    Posted 5 years ago #

    I figured the problem, it was the plugin I was using called PHP Speedy WP which was combining JS and CSS together and it playing around with the effects and some other plugins. Thank you so much for the help, and thank you :) One thing if I may ask, if you can look into the following concern I posted;

    http://wordpress.org/support/topic/312826?replies=6

  13. glutenfreerecipebox
    Member
    Posted 5 years ago #

    Where do I find the header. I am fairly new to WordPress, just coming over from WordPress.com.

    Thanks so much!

  14. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    in your theme. You can edit the header of the active theme by selecting header.php from the appearance->editor menu

  15. glutenfreerecipebox
    Member
    Posted 5 years ago #

    Thanks, RVoodoo! I will try to edit it.

  16. glutenfreerecipebox
    Member
    Posted 5 years ago #

    I only have "editor" under appearance. When I go to it there is CSS code. I have no idea what to edit. Any advice would be appreciated.

  17. glutenfreerecipebox
    Member
    Posted 5 years ago #

    Now I see "theme files" on the right side.

  18. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    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

  19. glutenfreerecipebox
    Member
    Posted 5 years ago #

    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 />

  20. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    I always put mine after this line:

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  21. glutenfreerecipebox
    Member
    Posted 5 years ago #

    It worked!!! Thanks so very much! You're a doll!

  22. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    >:D

    glad we got it sorted out!

  23. Saildude
    Member
    Posted 5 years ago #

    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.

  24. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    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.....

  25. Saildude
    Member
    Posted 5 years ago #

    Small sample - worked 1 out of 1 times for me about 6 weeks ago.

Topic Closed

This topic has been closed to new replies.

About this Topic