0 0 votes
Article Rating
The simplest way to get rid of them is to add a simple code snippet that tells WordPress not to display the URLs inside your code.
The following code removes every single RSS feed URL from every single page on the site. But then it adds the main feed URL back in.
remove_action( 'wp_head', 'feed_links', 2 ); remove_action('wp_head', 'feed_links_extra', 3 ); add_action('wp_head', 'addBackMainFeed'); function addBackMainFeed() { echo ''; }
If you want to remove all the RSS feed URLs without adding the main one back in, then this is the code to do so:
remove_action( 'wp_head', 'feed_links', 2 ); remove_action('wp_head', 'feed_links_extra', 3 );
If you don’t want to use the plugin, you can also add the code to your functions.php file. But be very careful editing this file, since a tiny mistake can crash your entire site.
0 0 votes
Article Rating