If we have previously disabled the WordPress RSS Feed, this article will discuss how to disable RSS Feed links in the WordPress header so that no more links point to the RSS Feed page on WordPress pages or articles.
However, before discussing this method, ensure you have access to the WordPress dashboard as an admin or another role that can change themes, or have FTP access to modify active theme files.
However, in this article, we will discuss how to make changes through the WordPress dashboard, which requires access as an admin user or another role with permissions to use the theme file editor.
How to Disable RSS Feed Links in the WordPress Header
Let's get started. To disable RSS Feed links in the WordPress header, you can follow these steps
- Log in to the WordPress dashboard, which is usually accessible via https://namadomain.tld/login1 or https://namadomain.tld/wp-login.php
- Once you are on the WordPress dashboard page, you can open the menu Appearance > Theme file editor
- Find and edit the file functions.php or Theme function
- Add the following line of code at the very end, then save the changes
// Disable link ke RSS Feed.remove_action('wp_head', 'feed_links', 2 );remove_action('wp_head', 'feed_links_extra', 3 );After you add the code above, the RSS Feed link will no longer be displayed when you check the source code of an article or page.
That is an easy way to remove the RSS Feed from the WordPress header that you can try. However, when using this method, the RSS Feed can still be accessed directly via the /feed page, for example https://namadomain.tld/feed
- Replace namadomain.tld with your own domain name, for example wpgan.com ↩︎
COMMENTS
Loading...