# Add short_name to a WordPress PWA manifest

URL: https://wp24x7.com/how-to-add-short-name-to-pwa-manifest/
Updated: 2026-11-29
Type: blog post
Audience: WordPress developers setting up a PWA manifest

> A web app manifest is a small JSON file that tells browsers how your site looks when installed. If a tool reports that the manifest lacks a short name entry, your manifest has a name but no short_name, the short label under the app icon. Add short_name of about 12 characters or fewer, using the PWA plugin filter, a plugin setting or a static manifest file.

## Key facts

- For: developers fixing the Web App Manifest lacks a short name entry warning
- Fix: add short_name, about 12 characters or fewer, next to name
- Options: a filter for the PWA plugin, a plugin or theme setting, or a static manifest file
- Check: Chrome DevTools, Application, Manifest, Identity section
- Scope: affects installability and appearance only, not rankings
- Help: WordPress development and theme development teams can build a full PWA

A web app manifest is a small JSON file that tells browsers how your site should look when installed on a phone or desktop. If a tool reports "Web App Manifest lacks a short name entry", **your manifest has a `name` but no `short_name`, the short label used under the app icon. Add `short_name` of about 12 characters or fewer.**

> **Quick answer**
Add a `short_name` field beside `name`, using the PWA plugin filter, your plugin or theme's own setting, or a static manifest file. Then check it in Chrome DevTools under **Application, Manifest**. Back up first, use a child theme or small plugin for code, and test the result.

## What is the manifest, and what does short_name do?

The manifest, often `manifest.json` or `manifest.webmanifest`, lists the name, icons, colours, start URL and display mode of your web app. Two name fields exist:

| Field | Used for |
|:--|:--|
| `name` | The full name, on install prompts and splash screens |
| `short_name` | The label where space is tight, such as a home screen icon |

If `short_name` is missing, browsers usually fall back to `name`, which may be truncated on the launcher. The warning is a recommendation to avoid that. This is about installability and appearance only and does not affect rankings.

## How do I check what my site outputs?

1. Open your site in Chrome, then DevTools (F12) and **Application**, then **Manifest**.
2. Read the **Identity** section: Name, Short name, and any warnings.
3. Or view the page source, find `<link rel="manifest" href="...">`, open that URL and read the JSON.

If no manifest is linked, your site is not set up as a PWA, and the warning came from a plugin or test tool. Find out which source produces the manifest before editing.

## How do I add it?

### PWA plugin filter
The WordPress PWA plugin built its manifest from the site name and exposed a filter so developers could modify the data:

```php
add_filter( 'web_app_manifest', function ( $manifest ) {
	$manifest['short_name'] = 'MySite';
	return $manifest;
} );
```

Put it in a small plugin or a child theme's `functions.php`, and replace `MySite` with your own short label, as plain text with no HTML. Then reload the manifest URL and check that `short_name` appears. That plugin has been restructured over the years, so a filter that worked in an older version might not exist in yours; check its documentation and changelog.
### Plugin or theme setting
Many PWA plugins and some themes have a settings screen with a **Short name** field. Use that when it exists, because code you add may be overwritten. Look under the plugin's own menu, **Appearance, Customize** or **Settings**.
### Static manifest file
Create `manifest.webmanifest` in your site root, or serve it from a plugin. A minimal valid file:

```json
{
	"name": "My Company Website",
	"short_name": "MyCompany",
	"start_url": "/",
	"scope": "/",
	"display": "standalone",
	"background_color": "#ffffff",
	"theme_color": "#1d4ed8",
	"icons": [
		{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
		{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
	]
}
```

Then link it in the head:

```php
add_action( 'wp_head', function () {
	echo '<link rel="manifest" href="' . esc_url( home_url( '/manifest.webmanifest' ) ) . '">' . "\n";
} );
```

Make sure only one manifest is linked. If you use `wp_head` this way, disable the plugin's own manifest, or the page will contain two links. The icons must exist at those paths.

## How should I choose the short name?

- Keep it to roughly 12 characters. Launchers differ, so test on a real phone.
- Use your brand, not a description: "Acme" works better than "Acme Customer Portal".
- Avoid special characters and emoji, which may not render.
- Make it recognisable next to the icon.

## How do I verify the fix?

1. Reload the page with cache disabled and open **Application, Manifest** again. "Short name" should show your value.
2. Re-run the tool that reported the warning. For a Site Health recommendation, reload **Tools, Site Health**.
3. Try installing the site from Chrome's install icon and see the label.
4. If you use Lighthouse, note that recent versions have dropped the dedicated PWA category, so manifest hints now appear in other audits or DevTools.

## What other manifest fields should I check?

| Field | What to confirm |
|:--|:--|
| `start_url` | Loads while offline if you have a service worker |
| `scope` | Covers the pages you want in the app window |
| `display`, `theme_color`, `background_color` | Match your brand |
| `icons` | Real files at the listed paths; 192 and 512 pixel PNGs; a maskable icon helps Android |

Chrome DevTools highlights installability problems in the same Manifest panel, so use it as your checklist.

_A manifest tells the browser how the installed app should look_

## What related issues come up?

A manifest is only half of a PWA, since offline features and push notifications rely on a service worker. If you also use OneSignal for push, read how to [run OneSignal and a PWA together](/how-to-integrate-onesignal-with-pwa-in-wordpress-website) and [customise its prompt text](/how-to-customize-onesignal-prompt-text).

**Want an installable site done properly?**
Icons, offline pages and testing included.
[WordPress development](/wordpress-development)
[Post a project](/post-project)

Our [theme developers](/wordpress-theme-development) can also add the manifest to a custom theme.

## Frequently asked questions

### What is short_name in a web app manifest?

It is the short label shown under an app icon on a phone's home screen or launcher, where the full name would be cut off. The manifest's name field holds the full title.

### How long can short_name be?

There is no hard limit in the specification, but launchers truncate long labels. About 12 characters is a common guideline.

### Will adding it fix Site Health or Lighthouse warnings?

It removes the short name warning from tools that check it. Other manifest recommendations, such as icons and start_url, are separate.

### What happens if short_name is missing?

Browsers usually fall back to name, which may be truncated with an ellipsis on the launcher. The warning is a recommendation to avoid that.

### How do I see what manifest my site outputs?

Open Chrome DevTools, then Application, then Manifest, and read the Identity section. Or view the page source, find the link rel manifest tag, and open that URL.

### Does short_name affect my search rankings?

No. This is about installability and appearance only, such as the label under the app icon on a phone's home screen. It removes a warning from tools that check the manifest, but it does not change rankings.

### The PWA plugin filter does nothing. Why?

That plugin has been restructured over the years and some features moved or were retired, so a filter that worked in an older version might not exist in yours. Check its documentation and changelog, or find out which plugin generates your manifest.

### Can I use a static manifest file?

Yes, if you control the whole manifest. Create manifest.webmanifest in the site root and link it in the head, making sure only one manifest is linked so the browser and any PWA plugin do not clash.

### Which icon sizes are needed?

A 192 and a 512 pixel PNG are the sizes browsers commonly require for installability. The icons must exist at the paths listed in the manifest, and a maskable icon helps Android crop your logo cleanly.

### How should I choose the short name?

Keep it to roughly 12 characters, use your brand not a description, avoid special characters and emoji, and test on a real phone since launchers differ.

### Is a manifest enough for a full PWA?

No. Offline features and push notifications rely on a service worker. If you use OneSignal for push, read how to run OneSignal and a PWA together.

### Can you build an installable site for me?

Yes. Our WordPress development team can build one including icons, offline pages and testing, and our theme developers can add the manifest to a custom theme.
