WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Remove canonical link from header

[Resolved] Remove canonical link from header

  • 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" "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('&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" />
    		<![endif]-->
    
    		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    		<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    		<?php
    			wp_enqueue_script("jquery");
    			wp_head();
    		?>
    		<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 ‘[Resolved] Remove canonical link from header’ is closed to new replies.
Skip to toolbar