Remove double canonical | WordPress.org

My webshop has the issue where it shows the canonical URL twice. But only on the webshop page. On all the other pages it’s showing correctly only once.

How reduce the canonical URL to only one?

I have tried adding this to the functions.php file:

function sp_titles_canonical($html) {
	
	$html="<link rel="canonical" href="".htmlspecialchars(urldecode('https://peggys-art.com/webshop/')).'" />'; 
	
	return $html;
}
add_filter('seopress_titles_canonical','sp_titles_canonical');

But still double canonical urls on the webshop page.

  • This topic was modified 11 hours, 55 minutes ago by nlatuny.

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer