DEV Community

Cover image for Previewing Hidden Content in an Unpublished Shopify Theme
Mykal
Mykal

Posted on

3 1

Previewing Hidden Content in an Unpublished Shopify Theme

What's the Issue?

You're working on a brand new product for your Shopify store, it's set to unavailable and you & the team are working on a launch for it later this month.

You're also working on a new theme that will launch alongside your product, how are you supposed to see how that new product looks with your new theme?

You can preview the new product, but it opens in the published theme, not the new theme you're working on...

So do you have to make your new product available and just hope no one notices? πŸ˜₯

The Solution!

Thankfully, there's a way we can get around this!

  1. Open your Shopify admin to your hidden product, and click "Preview" at the top of the page
  2. From the product's preview page, copy the part of the URL that looks like this: /products_preview?preview_key=your_key_goes_here
  3. In a new tab, open the new theme you're working in as a preview.
  4. In the URL bar, paste the portion of the product URL we copied earlier. your new URL should look something like this https://mystore.com/products_preview?preview_key=your_key_goes_here.
  5. Hit enter and you should be able to preview your hidden product in your new theme βœ¨πŸŽ‰

Not just for Products

This will work for hidden pages, and articles as well! Which is great when you're working on a landing page or a fancy new blog template!

This has been a huge pain for me when working on themes, and I just recently found this quick fix so I thought I'd share! Hopefully it helped you as well.

Thanks for reading πŸ‘‹

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (1)

Collapse
 
prathisahrudh profile image
Sahrudh Prathi β€’

What is "your_key_goes_here" here ?
Is it the preview key ?

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay