WordPress.org

Ready to get started?Download WordPress

Forums

Adding Google verification code (2 posts)

  1. Tizzlr
    Member
    Posted 1 year ago #

    Hey there,

    Looks like my site had some malware that I cleaned up. Now I'm trying to add the google verification code to add the site to my google profile and start the process of getting my blog back in good standing with Google.

    I can't seem to figure out where to put the Google code: 1dMON)DW4nUh

    By searching forums, I've read that I need to put it betweeen the <head> and </head> tags, but I can't seem to get it right. Anyone able to help me out? Below is the code for header.php

    <!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 bloginfo('name');
    if ( is_single() ) {
    	_e('ยป Blog Archive', 'minimalism');
    }
    wp_title(); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'minimalism'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'minimalism'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="page">
    
    <div id="header">
    	<div id="headerimg">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    </div>
    <hr />
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try adding it just before <?php wp_head(); ?>,

Topic Closed

This topic has been closed to new replies.

About this Topic