Hi everyone,
While developing the theme locally, I’m trying to figure out how to view the password-protected page. The site is not in password protection yet, but I want to test and develop the password page before enabling this mode. Does anyone have any ideas?
For example, we can view pages by adding the ?view parameter to the URL without assigning a specific template to the page. Is there a similar approach for viewing the password page?
The reason for this setup is that during BFCM, we plan to open the site only to users who have the password, similar to a VIP-only sale. So, we want to ensure the password page works as expected before enabling it.
When you run shopify theme dev you’ll get a link to view the locally running theme in the theme editor. If you use this link, in the editor you’ll be able to switch to the password page, using the dropdown at the top of the page:
Understood, but is there any way to view this page with hot reload directly, without having to enter the theme editor? I need to see my changes in real-time, and constantly refreshing the page in the theme editor is quite challenging.
Hi Rishi,
Thank you for the suggestion, but unfortunately, it didn’t work. As I mentioned earlier, I also need to be able to view it locally with hot reload enabled.