Support » Plugin: Greg's High Performance SEO » [Plugin: Greg's High Performance SEO] title tag content appears in body

  • Resolved rebelit


    Hi, I am using a child theme based on Thematic

    So I have used child theme override function for the title tag. However the ghpSEO title appears immediately after the body tag, whilst the title tag is empty.

    	if(function_exists('ghpseo_output')) {
    //this doesn't work - Title appears immediately under body tag
    //$doctitle = "\t <title>" . ghpseo_output('main_title') . "</title>\n\n";
    			$doctitle = "\t <title>This works fine</title>\n\n";
    	else {
                    //this works
    		$doctitle = "\t" . "<title>" . $doctitle . "</title>" . "\n\n";
    	echo $doctitle;
    } // end thematic_doctitle

    If I just use a static string here, or thematics default code it works as it should.

    Any idea what is happening here?

Viewing 1 replies (of 1 total)
  • Plugin Contributor gregmulhauser


    If you have a look at the plugin’s instructions, you’ll see there’s a second optional parameter for the GHPSEO output function that controls whether the output is automatically echoed. If you try to assign the GHPSEO output to a variable via a function is itself echoing that output, naturally it won’t be pretty.

    All the best,

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Greg's High Performance SEO] title tag content appears in body’ is closed to new replies.