Title: Javascript error on pages without sharebar
Last modified: August 19, 2016

---

# Javascript error on pages without sharebar

 *  [mneil](https://wordpress.org/support/users/mneil/)
 * (@mneil)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-on-pages-without-sharebar/)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [wiselywoven](https://wordpress.org/support/users/wiselywoven/)
 * (@wiselywoven)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-on-pages-without-sharebar/#post-1834454)
 * mneil: Awesome that was a big help! Thanks!
 *  [asharperrazor](https://wordpress.org/support/users/asharperrazor/)
 * (@asharperrazor)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-pages-without-sharebar/#post-1834484)
 * Thanks so much for writing that!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript error on pages without sharebar’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharebar.svg)
 * [Sharebar](https://wordpress.org/plugins/sharebar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharebar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharebar/)
 * [Active Topics](https://wordpress.org/support/plugin/sharebar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharebar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharebar/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 3 participants
 * Last reply from: [asharperrazor](https://wordpress.org/support/users/asharperrazor/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-on-pages-without-sharebar/#post-1834484)
 * Status: not resolved