Site logo

Archived topic

How to upload 02 files to the top-level root of site directory??

7 replies · Started by Juned on May 24, 2021

Viewing posts 1–8 of 8

Hello,

As per the instructions of my ESP, I will have to upload the 02 files to the top-level root of my site directory, making them publicly accessible:

(Below) Point No.2: I have downloaded and unzip the files.
(Below) Point No.3: Where and How do I upload those files?
(Below) Point No.4: I have already added the code via GP Elements >> Hook >> (Display Rules) generate_after_header. ((Is it correct? Should I check on Execute shortcodes or php also??))

THE ESP INSTRUCTIONS are below:
1. Download files by clicking the Download files button.
2. Unzip files. There should be two files:
* manifest.json
* sw.js
3. Upload files to the top-level root of your site directory, making them publicly accessible.
4. Add the code below to the <head> section on all pages of your site that users can subscribe to:
<link rel="manifest" href="/manifest.json">

Please suggest.

Hi there,

Points number 1,2 and 3 aren't exactly something the theme controls. It's out of our scope of support.

But to help you out:

What you'll need is an FTP access to the root folder of your site.

The information needed for this is normally provided within the CPanel UI of the webhost.

But in case it isn't, you'll have to ask for the FTP credentials from your hosting provider.

Once you get the FTP access, you'll need a program to browse through your server's folders.

You can install an FTP program for this. You can try Filezilla - https://filezilla-project.org/ or WinSCP - https://winscp.net/eng/download.php.

Thanks Elvin,

Pls confirm for below also:

Point No.4: I have already added the code via GP Elements >> Hook >> (Display Rules) generate_after_header. ((Is it correct? Should I check on Execute shortcodes or php also??))

Point No.4: I have already added the code via GP Elements >> Hook >> (Display Rules) generate_after_header. ((Is it correct? Should I check on Execute shortcodes or php also??))

For this, I believe the hook you should use is wp_head as <link> tags should go to <head> of the page.

Should I check on Execute shortcodes or php also??

Should I check on Execute shortcodes or php also??

If it's literally just <link rel=”manifest” href=”/manifest.json”> then there's no need as that's pure HTML code. Whatever you're trying to implement from manifest.json should run fine assuming the href is correct.

Thanks Elvin.

No problem. :)

This archived topic is closed to new replies.