WordPress.org

Support

Support » Plugins and Hacks » Google Content Experiments » [Resolved] Google can't find experiment code

[Resolved] Google can't find experiment code

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yikes! I’m actually having some trouble with my theme now, after including the code after the <head> tag. Seems my theme isn’t displaying.

    Not sure if this is coincidence or not.

    Here’s part of the code from header.php. I took out the code I added to see if it solved the problem.

    <!doctype html> <!– Start of page HTML5 enabled –>
    <head> <!– Start of head –>
    <?php do_action( ‘wpe_gce_head’ ); ?>
    <meta charset=”utf-8″>
    <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″>
    <title>
    <?php
    if(is_home()) echo bloginfo(__(‘name’) , ‘h-framework’ );
    elseif(is_category()) {
    _e(‘Browsing the Category ‘ , ‘h-framework’ );
    wp_title(‘ ‘, true, ”);
    } elseif(is_archive()) wp_title(”, true,”);
    elseif(is_search()) echo __( ‘Search Results for’ , ‘h-framework’ ).$s;
    elseif(is_404()) _e( ‘404 – Page got lost!’ , ‘h-framework’);
    else bloginfo(__(‘name’ , ‘h-framework’)); wp_title(__(‘-‘ , ‘h-framework’), true, ”);

    ?></title>

    <link rel=”shortcut icon” href=”<?php echo get_option(SN.”_favicon”); ?>” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” /><!– Feed –>
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php if ( is_singular() && get_option( ‘thread_comments’ ) ) wp_enqueue_script( ‘comment-reply’ );
    wp_head(); ?>

    OK, I put the code <?php do_action( ‘wpe_gce_head’ ); ?> back in. (theme problem wasn’t related to this at all).

    Google still can’t validate the code, though.

    One final comment: the page was made using the new optimizepress 2 plugin – not the theme.

    Ah, it’s an Optimizepress issue. Working now.

    How did you resolve it with OP2? I’m having issues getting the code to validate also!
    Thanks,
    Neil

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Google can't find experiment code’ is closed to new replies.
Skip to toolbar