NextGen Gallery hack

By , August 20, 2010

If you have installed the NextGen Gallery & find it slightly annoying the page scrolls back to the top when you’re clicking back to the page, here is the fix you’re looking for:

FTP to your site and find the following file:
wp-content/nextgen-gallery/shutter/shutter-reloaded.js

Search for and comment out the following two lines:

document.documentElement.style.overflowX = '';
window.scrollTo(0,t.Top);

Unfortunately, if you auto-update the NextGen Gallery plug-in and this isn’t part of their update, you will need to re-do this.

Much thanks to the WordPress community for finding and sharing a solution.

Leave a Reply