jQuery Conflict for Sharebar and Lightbox
Sharebar is my preferred plugin for social networking. It’s easily customizable even when Google Plus came out, adding a +1 button was a breeze.
Problem with it is, whenever I don’t activate it on pages, the lightbox-reliant images on those pages are opening up on another page instead of ‘lightboxing’ itself.
Solution there is to go to sharebar.js and find:
1 | return jQuery(sharebar).offset().top; |
Above it, add this line of code:
1 | if(jQuery(sharebar).offset() != null) |
You should be good to go
March 11, 2012 @ 11:50 am
You lifesaver Ken! Sharebar on WP was breaking everything apart from pages on my site. Again, thank you very much.