Jump to content

cart modal window not centered in screen ?


Recommended Posts

Hi,

When I add a product to the cart, the cart modal window is "on top of the page" and not visible. The user has to scroll up to see the cart modal window... a very bad UX !

Is this issue "normal" or a bug ? How to fix it ? Looks like the modal is set to "fixed px from top" instead of "relative position on the screen".

Thanks to confirm what to do here !

G

Link to comment
Share on other sites

no replies ?

 

Can someone tell me how to insert a script to automatically scoll up the page when the cart modal window appears ?

 

Something like:

 

<script type="text/javascript">
 
$(window).load(function(){
 
        $("html, body").animate({
            scrollTop: 0
        }, 600);
        return false;
 
});</script>
 
 
Thanks,
G
Link to comment
Share on other sites

×
×
  • Create New...