Javascript error on pages without sharebar (3 posts)

  1. mneil
    Posted 5 years ago #

    If you take the sharebar off of pages and only leave it on posts it's still including the js. This behavior is not recommended by wordrpess. Rather than rewrite this script I've added this line

    if(!jQuery(sharebar).offset())return false;

    of code to line 13 of sharebar.js to remove the error. It's killing other scripts on my pages. Please fix this bug in the next version! Hopefully this helps others.

  2. wiselywoven
    Posted 5 years ago #

    mneil: Awesome that was a big help! Thanks!

  3. asharperrazor
    Posted 4 years ago #

    Thanks so much for writing that!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic