Skip to main content

Installaton Guide

A PWA turns your website into an app-like experience. This setup enables offline functionality, faster load times, and the ability to "Add to Home Screen" on mobile devices.

Step 1: Upload the files 

Unzip and upload the files to your root directory according to the folder structure.

Step 2: Add to header (Please backup any file before editing)

Open themes/yourTheme/layout/container.phtml

Look for and comment it out or remove. 

Look for 

<script src="<?php echo $wo['config']['theme_url'];?>/javascript/OneSignalSDK.js" async='async'></script>

After that add 

Step 3: Edit the pwa.js file 

Open /themes/wondertag/javascript/pwa.js 

Look for and change wondertag for your theme name

/themes/wondertag/stylesheet/style.css', // Theme CSS
    '/themes/wondertag/javascript/script.js', // Theme JavaScript
    '/themes/wondertag/img/pwai/logo-192x192.png', // PWA logo
    '/themes/wondertag/img/pwai/logo-512x512.png' // Larger logo for PWA

Also at the bottom 

  icon: '/themes/wondertag/img/pwai/logo-192x192.png',
        badge: '/themes/wondertag/img/pwai/logo-72x72.png',
Step 4: Images

Open themes/wondertag/img/pwai

each image I have there indicate the size of the image that you need to create. make sure you have all images, do not delete any or your pwa may stop working. 

Enjoy! And if you love it leave me a review and a cookie

emot.png