Back button. Change url in shopify integration?

Questions & AnswersCategory: QuestionsBack button. Change url in shopify integration?
Marc asked 1 year ago

Is it possible to change the “back” button to a certian URL instead last visited page? 
And if, how? 

1 Answers
Tom van de Wielen Staff answered 1 year ago

Hi Marc,
This is can be done through javascript.
First, You can disable the default functionality through javascript:


Second, attach your own logic to the button:

document.querySelector(".expivi-closer").addEventListener("click", function(){});
Scroll to Top