Site icon Hip-Hop Website Design and Development

Learn how to change the canonical hyperlink from a class or taxonomy archive?

On this url: https://www.phuket-luxury-villas.us.com/tourist-spots/buddhist-temples-wats/ I’ve a incorrect canonical hyperlink:

<hyperlink rel="canonical" href="https://www.phuket-luxury-villas.us.com/tourist-spots/buddhist-temples-wats/" />

It was the comply with canonical hyperlink:

<hyperlink rel="canonical" href="https://www.luxuryvillasphuketthailand.com/tourist-spots/buddhist-temples-wats/" />

I attempted to make use of this code:

perform yoast_seo_canonical_change_woocom_shop( $canonical ) {
if ( is_archive() ) {
echo '';
}
}
add_filter( 'wpseo_canonical', 'yoast_seo_canonical_change_woocom_shop', 10, 1 );

However evidently is put now too many canonical hyperlinks on the web site…

Any thought what else I can do?

This talked about url, is an archive (carried out with Toolset). And we’re utilizing WPML. Sadly WPML will not allow us to to duplicate classes or taxonomies