Fixing the "Back button" not working on iOS 13

The newly released version of iOS13 introduced a break with one of the code we were using to power a specific feature of the theme. The issue is not directly due to the theme, but rather to a breaking change introduced in the underlying system. We have been able to come up with a fix that should solve the issue. You will find below the instructions to apply this yourself. This fix is already included in latest versions of the theme, so please only apply if you are affected.

The following instructions should be easy enough for anyone to achieve them, even without any coding knowledge. However, if for any reason you do not feel confident doing it, you can reach us at and we'll apply this fix for you. Please note though that due to a large number of customers that may contact us for this issue, it may takes 2-3 days before being resolved. We would therefore recommend you to try it yourself first.

We would recommend you to first duplicate your theme and apply the changes first on an unpublished version. This way, you can more easily go back if for any reason you applied the fix incorrectly.


In the list of themes in your Shopify store, click on the "More actions" button for the theme you want to fix, and click on Edit code:


In the list of files that appear, open the "theme.liquid":


In this file, locate the following lines (the exact line numbers can vary based on your theme version, and the custom code that you have installed). If you are not seeing this code, then you are likely not affected by this issue, so you can leave this page.


Remove the four lines highlighted in red ( make sure to NOT delete the </script> line!!), and replace them by the following lines (copy-paste them directly):

(function () {
  window.onpageshow = function(event) {
    if (event.persisted) {

After pasting the code, it should look like this:

Save the file.

If, for any reason, the previous fix did not solve the issue, please reach us at our support.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.