Hi @bichareh,
Bummer!
Here’s another snippet, that will always remove the front-page canonical URL output:
add_filter( 'the_seo_framework_rel_canonical_output', 'my_canonical_url_adjustments', 10, 2 );
/**
* Empties the canonical URL (thus preventing output) on the front page.
*/
function my_canonical_url_adjustments( $url = '', $id = 0 ) {
if ( is_front_page() )
$url = '';
return $url;
}
The same function names as in the previous snippet have been used. So this one is incompatible with the previous snippet I gave. Once again, the code above has not been tested.
If even this snippet doesn’t work, then we can assume other issues are present.
Cheers! ??