• Resolved tedcfpublishing

    (@tedcfpublishing)


    Is there a way to keep my PWA settings after the latest PWA 4.0 update? I updated WordPress to 5.4. Confirmed this did not cause any problems by checking Site Health etc., and then updated PWA. After updating to PWA 4.0 Site Health says I am missing a short name in the Web App Manifest. I rolled the update back to the previous PWA version and the missing short name problem is gone. I’m new to WordPress. So I’m taking small steps as I update plugins. I’m using Elementor with OcianWP theme. What should I do to keep my settings and update PWA? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    How did you add the short name in the first place?

    Thread Starter tedcfpublishing

    (@tedcfpublishing)

    I don’t know how it was added. I inherited this website and I’m more of an html, php, writer (old school) than WordPress website developer. The error said the short name would be listed in the Web App Manifest, and the line would read small_name=”YourSmallName”. In my research I’ve found this setting can be in the OceanWP functions.php, but I searched for the small_name variable in the file and couldn’t find it. I’ve rolled back the site to before the small name was missing (only PWA 4.0 was rolled back), but I haven’t found where it is set. Do you have any suggestions for where it is set? If I can find the setting I should be able to update PWA and then reset it.

    Plugin Author Weston Ruter

    (@westonruter)

    You can find the code necessary to specify a short name in the wiki: https://github.com/GoogleChromeLabs/pwa-wp/wiki/Web-App-Manifest#filtering

    Are you able to add that filtering code to a custom plugin?

    Thread Starter tedcfpublishing

    (@tedcfpublishing)

    I understand the code in the filter, but I’m not sure where I need to put it. I have the Woody Snippets plugin installed and have used it to write a custom plugin for a different purpose and is evoked by shortcode in my pages. In the Wookdy Snippets options I can have a plugin “run everywhere.” Should I write a new plugin with the filter code in it? Writing code is not new to me but the effect of doing it in a WordPress site is new. I’m not sure if I’ll create a conflict or cause other problems, and I’m not sure if “Run Everywhere” means short_name will be set every time a page is opened, when it most likely only needs to be set once. Maybe I’m over thinking it. What do you suggest?

    Plugin Author Weston Ruter

    (@westonruter)

    @tedcfpublishing Here is a standalone plugin you can install to add the Short Name field to the general settings screen in WordPress: https://gist.github.com/westonruter/dec7d190060732e29a09751ab99cc549

    Installation instructions: https://gist.github.com/westonruter/6110fbc4bef0c4b8c021a112012f7e9c

    Thread Starter tedcfpublishing

    (@tedcfpublishing)

    I installed and activated the PWA Manifest Short Name plugin, but the problem persists. The Site Health Status reports “Web App Manifest lacks a short name entry.” First I updated PWA to 4.0. Next I installed and activated the short name plugin, and then I checked the site health. The problem persisted. So I rolled back to the previous version of PWA and the problem was corrected.

    Plugin Author Weston Ruter

    (@westonruter)

    Did you supply a short name on the WordPress general settings screen? A new field is added after the “Site Title” field.

    Thread Starter tedcfpublishing

    (@tedcfpublishing)

    Hi Weston, Being new to WordPress I don’t know where I should have looked to find these instructions. Can you tell me where I should have looked? I updated PWA, Activated the short name plugin, and then set the short name. All is working very well. Thank you so much for you help.

    Hi Weston, I tried the plugin and short name shows in WordPress general settings but there is no field active to edit it, it’s just a simple title name.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PWA Removes Short Name on Update to 4.0’ is closed to new replies.