Cleaning up the Header of your Website
Fastest and most secure hosting for US based websites (in my opinion) - https://goo.gl/3nSyWj (note: this link is affiliate link)).
Cleaning up the header of our website.
We will delete links like:
link rel="profile"
link rel="pingback"
link rel="alternate"
link rel="EditURI"
link rel="wlwmanifest"
link rel='shortlink'
meta name="generator"
and so on.
Code for Functions.php file:
remove_action( 'wp_head', 'wp_resource_hints', 2);
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10 );
remove_action('template_redirect', 'wp_shortlink_header', 11);
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
remove_action( 'wp_head', 'wp_generator' );
Видео Cleaning up the Header of your Website канала TGM WEB GURU
Cleaning up the header of our website.
We will delete links like:
link rel="profile"
link rel="pingback"
link rel="alternate"
link rel="EditURI"
link rel="wlwmanifest"
link rel='shortlink'
meta name="generator"
and so on.
Code for Functions.php file:
remove_action( 'wp_head', 'wp_resource_hints', 2);
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10 );
remove_action('template_redirect', 'wp_shortlink_header', 11);
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'index_rel_link' );
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
remove_action( 'wp_head', 'wp_generator' );
Видео Cleaning up the Header of your Website канала TGM WEB GURU
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![3 Best Tools to Test Website Load Time](https://i.ytimg.com/vi/iKb4BQorG5k/default.jpg)
![Fast and SEO ready website on WordPress for FREE in 1 hour](https://i.ytimg.com/vi/VTqjL_6lNAY/default.jpg)
![Why do they Hack websites?](https://i.ytimg.com/vi/v9cEQk6MCKw/default.jpg)
![Broken link checker plugin sucks! Why is that?](https://i.ytimg.com/vi/9qhWPdV3HHo/default.jpg)
![How to use XENU link checker for searching broken links](https://i.ytimg.com/vi/V_Zo2qniIyE/default.jpg)
![Wordpress Store Locator Plugin Full Tutorial](https://i.ytimg.com/vi/kuAZ5IYbNK4/default.jpg)
![How to Use Semrush SEO Tool to Defeat Your Competitors](https://i.ytimg.com/vi/UUN7omy8mCw/default.jpg)
![WordPress Image Optimization Plugins VS your HANDS](https://i.ytimg.com/vi/vu-CHK5HEYE/default.jpg)
![5 Best Virus Scanners to Check Website](https://i.ytimg.com/vi/XJWlqJ1gtF4/default.jpg)
![I've pre built a website for your business. Just copy and Paste.](https://i.ytimg.com/vi/I82-A_kb2ms/default.jpg)
![Vistaprint Website Builder - Never Again](https://i.ytimg.com/vi/bTLVL3_VOwE/default.jpg)