Support » Fixing WordPress » Remove canonical link from header

  • Resolved tshirtfiend


    Somehow, my site is creating a canonical link in the header. It’s not part of my header file, and I disabled canonical links in the All-in-1 SEO plugin. Here’s what the first part of my header looks like:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="" <?php language_attributes(); ?>>
    	<head profile="">
    		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    		<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    		<link rel="shortcut icon" href="<?php bloginfo('url'); ?>/favicon.ico" type="image" />
    		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    		<!--[if lt IE 8]>
    		<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/iefix.css" type="text/css" media="screen" />
    		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    		<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>

    What could be causing this? As mentioned, I am using an SEO plugin, but the links are created even if I don’t have any plug-ins activated.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove canonical link from header’ is closed to new replies.