Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
After our developer followed a combination of these two articles (1 & 2) to help us split test our live Shopify theme with one in preview where he coded the edits, we've ran into the issue that the preview bar indicator appears in checkout. We were able to successfully hide it on the main site (homepage, pdp, etc.).
We've received various answers from support including:
- not possible
- can't edit that because of compliance restrictions
- use an individual's timed testing tool (which we're very against for various reasons - it switches which theme is published ~daily)
- upgrade to shopify plus
- to comment here on the forums
Now unfortunately the change we'd like to make is too complicated for VWO's A/B visual editor, which is why we'd like to split test/redirect test.
----------------
Changes we're making:
----------------
Our developer has said he's tried the following and both don't work on checkout:
1. injecting display none to the iframe by javascript in online store > preferences > additional scripts
2.
#preview-bar-iframe {
display: none!important;
}
------------
I'm not technical, but these were some of my ideas:
I also thought Shopify could disable it on their end for us like they disable captchas on forms but chat support was unable to find out.
-------------
Please let us know if you've split-tested themes before and how you've gone about it or are able to help with the issues we're running into.
Thank you in advance,
Dan
Have you tried to add pb=0 url parameter to your theme preview urls?
Hello Dan,
Have you tried using an A/B Testing tool to test out themes?
If not, I work at Neat A/B Testing and we offer Theme tests with the appropriate data that will help you evaluate what performs better at a significantly lower price than VWO.
Our app also has price testing, product page testing, homepage tests, and split URL tests.
If you or you developer need any help with setup, please don't hesitate to reach out as we are happy to help you get up and running!
@RobertBotto, do you have a way to hide the preview box on the checkout page too?
You need to be on Shopify Plus to remove it in checkout which is why I found hiding preview with the param alone didn't suffice for the majority of our clients.
One old colleague of mine tossed around a dopey idea that I'd love to hear back from any of you if your dev team finds the time - she said potentially code the changes on the site but comment out those DIVs/edits. Then go into your Testing tool like Google Optimize and un-comment it out for the variant. Very curious if this works - please reply here if anyone tries this!
Thanks, @danmaf! For confirming this to me. So if someone is using Shopify Plus, does the hiding with-param work on the checkout, or no? Does it need CSS hiding?
For your colleague's idea, basically yes it is doable, but since the tool can uncomment, it can also add code and do countless things, so basically not really useful. You would also you would have to do it in a way that the uncommented blocks get re-executed, so not that trivial.
It needs CSS. Across the site, the following CSS should be present for all pages including the checkout flow: .shopify-preview-bar { display: none }
I believe that is all, but feel free to read this documentation - specifically, at the way bottom of the 'How can I test alternate templates?' and 'How can I test a new design site-wide?' sections of the article. I found this to be the working solution, but again it's sadly only for Shopify Plus clients because at that plan you're able to edit checkout. Hopefully, Shopify adds just this one edit for non-Plus accounts because I'm really surprised split testing themes isn't built-in.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024