Audio Visual Junkie

How to fix positioning problem using the Digg Digg plugin on WordPress

Digg digg plugin screenshot
Recently I installed the Digg Digg plugin which allowed me to display some nice social buttons at the left hand side of the site. I was running WordPress 3.2.1 using the Twenty Eleven theme and Digg Digg had some trouble with the display. The floating buttons worked fine scrolling down but would change positions upon scrolling up.

To fix this I had to change the following line under the jQuery code:


} else if ( scrollY < descripY && fixedShare ) { $postShare.css({ position: 'absolute', top: descripY, marginLeft: pullX });

to:

} else if ( scrollY < descripY && fixedShare ) { $postShare.css({ position: 'absolute', top: 'auto', marginLeft: pullX });


Posted

in

by