Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Disable specific DNS pre-fetch element

Discussion in 'Misc WordPress Requests' started by adamjames128, Oct 21, 2017.

  1. adamjames128

    Guest

    Reply To: Disable specific DNS pre-fetch element, by adamjames128

    I think I’ve got the fix, as to whether it’s the cause of the incorrect URL’s in search console, I’m not sure.

    But this code:

    // Disable DNS pre-fetch
    remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );

    Added to theme functions disables them completely. When I remove the code, it brings back DNS pre-fetch but without the site URL that had the incorrect protocol .

    Looks like a winner.

    Reply To: Disable specific DNS pre-fetch element
     
    #1

Share This Page

Web Hosting