0

function blog_remove_canonical() {
    if ( is_home() ) {
        add_filter( 'wpseo_canonical', '__return_false',  10, 1 );
    }
}
add_action('wp', 'blog_remove_canonical');

Jagdish Sarma Asked question December 8, 2021
Add a Comment