Customize javascript scroll to top when opening popup.
-
Hi, first of all thanks so much for this free plugin! I really appreciate it’s simplicity and usefulness π
I have customized the CSS of the popup window so that it becomes “fixed” and assumes a height relative to the current viewport, also changing the “overflow” property to “scroll” because I think this creates a better user experience for reviewing a full length terms and conditions during checkout. My customizations are as follows:
.simplepopup { position: fixed !important; top: 2% !important; top: 2vh !important; left: 50% !important; height: 96%; height: 96vh; max-height: 100%; overflow: scroll; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -o-transform: translateX(-50%); transform: translateX(-50%); }My only wish is that I could disable the plugin’s scroll-to-top behavior when the popup is opened. Currently, when a user clicks the terms and conditions link, the popup is opened and the window is scrolled to the very top of the page.
Is there a way to change that behavior?
Thanks in advance!
– Colin
https://ww.wp.xz.cn/plugins/woocommerce-checkout-terms-conditions-popup/
The topic ‘Customize javascript scroll to top when opening popup.’ is closed to new replies.