Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Set custom favicon on admin pages" #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ This is a list of useful WordPress functions that I often reference to enhance o
- [Exclude a Category From WordPress Loops](#exclude-a-category-from-wordpress-loops)
- [Disable the message "JQMIGRATE: Migrate is installed, version 1.4.1"](#user-content-disable-the-message---jqmigrate-migrate-is-installed-version-141)
- [Load heavy 3rd-party scripts later for better performance](#load-heavy-3rd-party-scripts-later-for-better-performance)
- [Set custom favicon on admin pages](#set-custom-favicon-on-admin-pages)

## Hide WordPress Update Nag to All But Admins

Expand Down Expand Up @@ -1026,3 +1027,13 @@ window.addEventListener('scroll', () => {
});
</script>
```

## Set custom favicon on admin pages

Useful for distinguishing between front-end tabs and admin tabs at a glance.

```php
add_action('admin_head', function () { ?>
<link rel="icon" type="image/png" href="/path/to/other/favicon.png">
<?php });
```