Title: Javascript Error
Last modified: August 22, 2016

---

# Javascript Error

 *  Resolved [CotswoldPhoto](https://wordpress.org/support/users/cotswoldphoto/)
 * (@cotswoldphoto)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/)
 * Hi
 * Great script. I get a js error in the admin area (amy page):
 * ReferenceError: fttb_topdistance is not defined
    …./wp-content/plugins/float-
   to-top-button/js/float-to-top-button.js?ver=1.0 Line 22
 * Also, does this script restrict itself to the front end, as I can’t see a need
   for it in the back end?
 * [https://wordpress.org/plugins/float-to-top-button/](https://wordpress.org/plugins/float-to-top-button/)

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

 *  Plugin Author [cageehv](https://wordpress.org/support/users/cageehv/)
 * (@cageehv)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468486)
 * Hey CotswoldPhoto,
 * I see the error! I will fix it soon.
 * Thanks for your feedback!
 * peace,
    Rolf
 *  Thread Starter [CotswoldPhoto](https://wordpress.org/support/users/cotswoldphoto/)
 * (@cotswoldphoto)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468491)
 * Cool.
 *  Plugin Author [cageehv](https://wordpress.org/support/users/cageehv/)
 * (@cageehv)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468502)
 * Hey CotswoldPhoto,
 * Just released version v1.1.1 of the plugin!
 * This fixes the problems you mentioned.
 * Thanks!
 * Rolf
 *  Thread Starter [CotswoldPhoto](https://wordpress.org/support/users/cotswoldphoto/)
 * (@cotswoldphoto)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468515)
 * Whoop. That fixed it.
 * As an idea. What about a non-image option, but a css 3 bootstrap 3 flat type 
   button. Pick the button color from a picker, pick a font awesome icon (it would
   have to be bigger size icon), and icon color. It could be a link containing an
   i tag with the fa code.
 *  Plugin Author [cageehv](https://wordpress.org/support/users/cageehv/)
 * (@cageehv)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468521)
 * Hey CotswoldPhoto,
 * Thanks for the suggestion!
 * I will look into it and see if I want to implement it.
 * peace,
    Rolf

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

The topic ‘Javascript Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/float-to-top-button_d7d7d7.svg)
 * [Float to Top Button](https://wordpress.org/plugins/float-to-top-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/float-to-top-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/float-to-top-button/)
 * [Active Topics](https://wordpress.org/support/plugin/float-to-top-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/float-to-top-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/float-to-top-button/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [cageehv](https://wordpress.org/support/users/cageehv/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-error-61/#post-5468521)
 * Status: resolved