• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to remove rel=canonical?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to remove rel=canonical?

This topic is: not resolved

Tagged: canonical

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 3 months ago by jhguynn.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 20, 2013 at 8:21 am #67817
    Dave Shuttleworth
    Member

    Hi,
    for my requirements I want to remove the rel=canonical tag from the site, but how to do this with Genesis?

    I've added the line below to the themes functions file:

    remove_action( 'wp_head','genesis_canonical', 5 );

    But it has made no difference, the rel=canonical is still there.

    How can I get rid of it please?

    Thanks.

    October 20, 2013 at 11:18 am #67853
    David Chu
    Participant

    Hi,
    Interesting question. I just ran that, and it worked great. I wonder if where you're putting it in the sequence of things is nullifying it? "Somebody else" getting in after you, so to speak. I was going to ask if you're running Genesis 1.9, but that has the same related code as Genesis 2.

    You could try putting it at the very end of your functions.php.

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    October 20, 2013 at 1:57 pm #67877
    jhguynn
    Member

    Out of curiosity, why do you want to remove the rel=canonical tag from your site?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble