• Resolved donaulife

    (@donaulife)


    Hello,
    recently I discovered that I have two canonical tags per page. I think they are generated by “SEO Framework” and the plugin “Perfect Seo Url”. Is there a way to remove already generated canonical tags with Seo Framework?
    With best regards
    Max

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Max,

    I’m afraid I can’t access the code of “Perfect SEO URL”, so I can’t comment on its compatibility. It’d be best to reach out to WPLift; they can quickly take out our URLs by applying a simple patch. Tell them to look at the Render class for the filter. ??

    Please see https://www.ads-software.com/support/guidelines/#do-not-post-about-commercial-products.

    That said, I do not believe trimming the URLs brings any benefit to SEO. Google said they don’t care, either. It also comes with some unforeseen issues in WordPress, like colliding endpoints between products and categories, and that permalink updates (via plugin install/update) can sporadically change its behavior.

    Thread Starter donaulife

    (@donaulife)

    Thanks for the fast answer. Is der any way to remove the canonical tag created by the Seo Framework? Because they are both identical so it doesnt matter which one I remove. Right now I am too afraid to deactivate Perfect Seo because it will fuck my page completely up ^^
    Greetings
    Max

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Max,

    This filter will remove the canonical URL output from TSF:

    add_filter( 'the_seo_framework_rel_canonical_output', '__return_empty_string' );
    

    You can place it in a custom plugin, or your (child-)theme’s functions.php file.

    Please note that it will remove your ability to optimize and control the canonical URL via The SEO Framework. Moreover, the UI doesn’t respond to that filter; so, you’ll still find inputs and options for it.

    Don’t forget to clear the cache of your site after you implement the filter.

    I hope this helps. Cheers! ??

    • This reply was modified 4 years, 7 months ago by Sybre Waaijer. Reason: caching
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doubel Canonical Tag’ is closed to new replies.