{"id":11042,"date":"2025-06-19T12:30:10","date_gmt":"2025-06-19T07:00:10","guid":{"rendered":"https:\/\/veewom.com\/articles\/?p=11042"},"modified":"2025-06-19T12:31:59","modified_gmt":"2025-06-19T07:01:59","slug":"clean-wordpress-header-without-plugin","status":"publish","type":"post","link":"https:\/\/veewom.com\/articles\/clean-wordpress-header-without-plugin.htm","title":{"rendered":"How To Clean Up WordPress Header Without a Plugin"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>How To Clean Up WordPress Header Without a Plugin<\/strong> | Hello every welcome to another fresh article ,in this article i will show you how to clean up your wordpress website header(wp_head()) ,without a plugins.<\/p>\n<p style=\"text-align: justify;\">Place the following code in your functions.php file of your WordPress theme to remove some useless things from the head of your site.<\/p>\n<pre><code class=\"php\">\r\n\r\n    \/\/ CLEAN WP_HEAD\r\n    remove_action('wp_head', 'rsd_link'); \/\/ remove really simple discovery link\r\n    remove_action('wp_head', 'wp_generator'); \/\/ remove wordpress version\r\n    remove_action('wp_head', 'feed_links', 2); \/\/ remove rss feed links (make sure you add them in yourself if youre using feedblitz or an rss service)\r\n    remove_action('wp_head', 'feed_links_extra', 3); \/\/ removes all extra rss feed links\r\n    remove_action('wp_head', 'index_rel_link'); \/\/ remove link to index page\r\n    remove_action('wp_head', 'wlwmanifest_link'); \/\/ remove wlwmanifest.xml (needed to support windows live writer)\r\n    remove_action('wp_head', 'start_post_rel_link', 10, 0); \/\/ remove random post link\r\n    remove_action('wp_head', 'parent_post_rel_link', 10, 0); \/\/ remove parent post link\r\n    remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); \/\/ remove the next and previous post links\r\n    remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\r\n    remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0 );\r\n\r\n<\/code><\/pre>\n<blockquote><p>Note : This code is tested with latest version of WordPress &#8211; WordPress Version 6.8.1<\/p><\/blockquote>\n<p style=\"text-align: justify;\">We hope this article helped you to easily clean wordpress header without a plugin. You may also want to see &#8211; <a href=\"https:\/\/veewom.com\/articles\/how-to-change-default-wordpress-email-address.htm\" target=\"_blank\" rel=\"noopener\">How To Change The Default WordPress Email Address<\/a>.<\/p>\n<p style=\"text-align: justify;\">If you liked this article, then please share to social networking site. You can also find us on <a href=\"https:\/\/twitter.com\/veewom\" target=\"_blank\" rel=\"noopener\">Twitter<\/a>,<a href=\"https:\/\/www.facebook.com\/veewom\" target=\"_blank\" rel=\"noopener\">Facebook<\/a> and <a href=\"https:\/\/www.instagram.com\/veewom\" target=\"_blank\" rel=\"noopener\">Instagram<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How To Clean Up WordPress Header Without a Plugin | Hello every welcome to another fresh article ,in this article i will show you how to clean up your wordpress website header(wp_head()) ,without a plugins. Place the following code in your functions.php file of your WordPress theme to remove some useless things from the head &hellip; <a href=\"https:\/\/veewom.com\/articles\/clean-wordpress-header-without-plugin.htm\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Clean Up WordPress Header Without a Plugin&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11057,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[217,216,218,215,118],"class_list":["post-11042","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-how-to-protect-wordpress-website","tag-how-to-secure-wordpress-website","tag-removing-wordpress-header-junk","tag-website-security","tag-wordpress"],"featured_image_src":"https:\/\/veewom.com\/articles\/wp-content\/uploads\/2017\/12\/wpp-copy.png","author_info":{"display_name":"Editorial Staff","author_link":"https:\/\/veewom.com\/articles\/author\/admin"},"_links":{"self":[{"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/posts\/11042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/comments?post=11042"}],"version-history":[{"count":2,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/posts\/11042\/revisions"}],"predecessor-version":[{"id":12605,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/posts\/11042\/revisions\/12605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/media\/11057"}],"wp:attachment":[{"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/media?parent=11042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/categories?post=11042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/veewom.com\/articles\/wp-json\/wp\/v2\/tags?post=11042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}