Can I Create PWA From WordPress?
on 24 August, 2022
No Comments
WPWA is a great way to create a Progressive Web App from your WordPress site. To create a WPWA, you first need to create a manifest.json file and add the following to it:
“name”: “My WPWA”,
“theme”: “wpwa-theme”,
“background”: “#e5e5e5″,
“start_url”: “https://my-wpwa.com”,
“display”: “standalone”,
“icons”: [
{
“type”: “image”,
“src”: “https://my-wpwa.com/wp-content/themes/wpwa-theme/assets/icon-16.png”
}
],
“app”: {
“icon”: “https://my-wpwa.png”,
“display”: “standalone”
Next, you need to add the following to your wp-config.php file:
define( ‘WPWA_USE_STORE_BASED_PROFILE’, true );
Then, you need to create a file called manifest.json and add the following to it:
Finally, you need to create a file called index.html and add the following to it:
My WPWA
.
My WPWA - App
My WPWA - App