June 2026 promo! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

how to change PWA theme and background color in WordPress

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #26279
    Heather
    Guest

    it seems these 2 fields are missing from the official PWA app and they are both hardcoded to #fff for some reason?

    PWA

    #26280
    Beverly
    Guest

    "background_color": "#fff",
    "theme_color": "#fff",

    this is what I seen after scanning the manifest.json on PWA Builder.

    #26281
    Joshua
    Guest

    also unrelated but I would rather use "display": "standalone", instead of "display": "minimal-ui", but that one also seems hardcoded?

    #26282
    Emma
    Guest
    #26284
    Samuel
    Guest

    Super PWA also supports Standalone display too btw, it’s the default display mode.

    #26285
    Raymond
    Guest

    https://github.com/w3c/manifest/issues/975

    dark mode colors might be getting approved too by W3C.

    #26286
    Anthony
    Guest

    Expose the Web App Manifest display member as setting in admin #970

    https://github.com/GoogleChromeLabs/pwa-wp/issues/970

    #26290
    Kelly
    Guest

    FYI,

    Just discovered the official plugin also supports these fields but it requires custom PHP filters to be added in your theme functions.php or using a code snippet plugin:

    https://github.com/GoogleChromeLabs/pwa-wp/wiki/Web-App-Manifest

    example:

    add_filter( 'web_app_manifest', function( $manifest ) {
    $manifest['theme_color'] = '#0073AA';
    return $manifest;
    } );

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: how to change PWA theme and background color in WordPress

Thanks to our generous sponsors for their support!