Disable Canonical URL Generation by WordPress

  • Thread starter Thread starter Sushubh
  • Start date Start date
  • Replies Replies 0
  • Views Views 1,718

Sushubh

Admin
Staff member
Messages
413,532
Location
Gurgaon
ISP
Excitel
Airtel
PHP:
remove_action('wp_head', 'rel_canonical');
add this line to theme's functions.php. i had to search for this solution because i prefer a plug-in to manage my canonical url code generation.
 

Back