• Resolved nlatuny

    (@nlatuny)


    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 2 years ago by nlatuny.

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove double canonical’ is closed to new replies.