Code Monkey home page Code Monkey logo

pwa-wordpress-plugin's Introduction

There is official PWA plugin released and maintained by Google. Please use this WordPress plugin instead - https://wordpress.org/plugins/pwa/

PWA WordPress Plugin

WordPress Plugin to enable PWA features.

Setup

Once the plugin installed, go to Appearance > Customize > PWA WordPress to setup options.

Web App Manifest

Web app manifest example output:

{
  "background_color": "#ffffff",
  "description": "Just another WordPress site",
  "display": "standalone",
  "lang": "en-US",
  "name": "Site Name",
  "short_name": "WordPress",
  "start_url": "https://example.com",
  "theme_color": "#000000",
  "icons": [
    {
      "src": "https://example.com/wp-content/uploads/2018/09/cropped-icon-512-1-48x48.png",
      "sizes": "48x48"
    },
    {
      "src": "https://example.com/wp-content/uploads/2018/09/cropped-icon-512-1-192x192.png",
      "sizes": "192x192"
    },
    {
      "src": "https://example.com/wp-content/uploads/2018/09/cropped-icon-512-1-256x256.png",
      "sizes": "256x256"
    },
    {
      "src": "https://example.com/wp-content/uploads/2018/09/cropped-icon-512-1.png",
      "sizes": "512x512"
    }
  ]
}

From above entries, following fields can be manage from customizer options:

  • name - Default will be get_bloginfo( 'name' )
  • short_name - Default will be get_bloginfo( 'name' )
  • description - Default will be get_bloginfo( 'description' )
  • theme_color - Default will be #000000
  • background_color - Default will be #ffffff

Filters:

  • pwa_ready_manifest To manage above manifest entries.
  • pwa_wp_plugin_get_theme_color Control theme color.
  • pwa_wp_plugin_get_background_color Control background color.

A rel="manifest" with link eg. https://example.com/?pwa_wp_plugin_manifest=1 will be added to wp_head.

Icon will be fetch from site icon. Go to Appearance > Customize > Site Identity > Site Icon to setup icons.

In Progress.

Does this interest you?

Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions

pwa-wordpress-plugin's People

Contributors

maitreyie-chavan avatar manishsongirkar avatar pradeep910 avatar sagarkbhatt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.