Use ZP Page as the Homepage

To make any one of your published ZP pages your store actual Homepage, follow the steps below:

1. Go to Settings > General > Use ZP Page as the Homepage.

2. Click the switcher there to the "ON" position, select your desired ZP page from the drop-down menu that appears and then click Save.

That's it! Your selected ZP page will now be used for your store's Homepage.

To revert back to using your original Homepage, just click the switcher to the "OFF" position and Save and your original Homepage will then be used again.

*Note: If you change the "URL and Handle" of the page that is set as the Homepage, then your store's homepage will revert back to using your theme's original homepage. To use the ZP page once again, go back to the Settings within ZP, re-select the page and Save. 

Technical Stuff

Once the "Use ZP page as the Homepage of your store" feature is enabled, we're replacing the code in the index.liquid file of your theme.

In order to preserve this file's original code, we're creating a new Snippet file called index.original.zipifypages.liquid (index.custom.zipifypages.liquid if the "use theme header/footer" feature is being used for the page) and placing the original code from the index.liquid file there:

Our code remains in the index.liquid file when the ZP app is disabled, but the previous code from the index.original.zipifypages.liquid or index.custom.zipifypages.liquid file will work instead, so your original homepage will be shown again when the app is disabled without any additional action required.

However, in order to get your theme files back to their original state (if you want to remove the ZP app from your store or otherwise), you just need to copy the code from the index.original.zipifypages.liquid file (index.custom.zipifypages.liquid if the "use theme header/footer" feature is being used for the page):

Then use it to replace the content in the index.liquid file and Save:

Then remove the index.original.zipifypages.liquid or index.custom.zipifypages.liquid Snippet file and you're done! 

Did this answer your question?