• Resolved danishmuneer

    (@danishmuneer)


    Hi

    Is there a way (preferably a hook I can add to functions.php or header.php) to disable favicons on admin side of a WordPress website? What I mean by admin side is combination of the login page and logged in dashboard. Just trying to decrease server requests because for us the favicon is unnecessary on login page and logged in area.

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The meta tag output is filtered through ‘site_icon_meta_tags’. You could hook it and return an empty string if is_admin() is true.

    The site icon is typically aggressively cached so I doubt you’d be gaining much, but it’s your site. You do you ??

    Thread Starter danishmuneer

    (@danishmuneer)

    We don’t cache admin side of the site so it’s hitting our servers. We confirmed from our hosting. Thank you for your reply. I will disable using your method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable favicon for admin side’ is closed to new replies.