Avada Forums Community Forum PWA Web Manifest

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • winterluke
    Participant
    Post count: 1

    How can I edit the web manifest file of PWA except on the theme option? I wanted to add a short name. Thank you.

    marklchaves
    Participant
    Post count: 873

    Hi,

    I brought this up to the plugin author about six months ago. BTW, you should be posting this to the PWA Plugin forum or GitHub. But, do a search first because this is a known issue.

    See my initial thread. The reference to the source file to edit is in my post.

    https://wordpress.org/support/topic/short-name-support-in-get_manifest/

    Good luck!

    marklchaves
    Participant
    Post count: 873

    Just saw the plugin author, Weston, repost this to answer the same question above. Thought I’d share.

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

    https://github.com/GoogleChromeLabs/pwa-wp/issues/181#issuecomment-515772953

    R&P
    Participant
    Post count: 3

    yes, @marklchaves thank you – this resolved it 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.