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:

return jQuery(sharebar).offset().top;

Above it, add this line of code:

if(jQuery(sharebar).offset() != null)

You should be good to go

One Response to jQuery Conflict for Sharebar and Lightbox

  1. You lifesaver Ken! Sharebar on WP was breaking everything apart from pages on my site. Again, thank you very much.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>