lundi 12 janvier 2015

how to disable auto scroll

I have embedded a ecwid store in my webage via iframe.


Whenever I load the page, ecwid automatically scrolls to the iframe, instead of the top of the page.


As seen here (ecwid: how to force the scroll position), ecwid's solution for this is to add the following DIV inside the {body} tag:



<div id="ecwid_product_browser_scroller"></div>


I've made a fiddle to try to make it work, but it won't happen. I do know that people have used the same code to force the bar not to scroll down, so I must be doing something wrong.


Here's the fiddle: fiddle


Notice that the store is forcing the bar to scroll down. I would like it to stay at the top so customers actually see the banner.


UPDATE: Still don't know why the DIV does not work here fiddle


We did manage to make it work inside the new fiddle but it does not work in my website


Aucun commentaire:

Enregistrer un commentaire