Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #314220

    Hi I was wondering if that is okay that on every page of my website I can find the tag: <link rel=’canonical’ linking to the website name that the link is on.
    Seems like an error to me.
    can I remove this?
    Thanks
    Martina

    #314333

    Hey Martina!

    The theme does not add this tag, it is a WordPress default behavior, try the following:
    http://pixelpunk.co.uk/2010/01/disable-wordpress-built-in-canonical-url/

    Regards,
    Josue

    #315189

    Hi Josue,
    Thanks so much for your reply.
    If I copy # Remove WordPress’ canonical links
    remove_action(‘wp_head’, ‘rel_canonical’); into the functions.php won’t it be overwritten with an update?
    Martina

    #315206

    Hi!

    If you add this code to enfold/functions.php a theme update will overwrite it – yes. However you can create/use a child theme if you don’t want that the custom functions.php file is affected by a theme update. Just create a file inside the child theme folder, call it “functions.php” and add your code into it. You can also download the sample child theme here: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Cheers!
    Peter

    #315316

    Awesome! you guys are great! Thanks so much!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘rel=canonical on every page’ is closed to new replies.