Title: Javascript linking issue
Last modified: August 22, 2016

---

# Javascript linking issue

 *  [awelsh](https://wordpress.org/support/users/awelsh/)
 * (@awelsh)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-linking-issue/)
 * In my previous problem “Superscript numbers not beginning at 1” I originally 
   had a linking issue to the footnotes at the bottom of the page in the widget 
   area (this was after I had installed polylang but not sure if the caused the 
   problem). Then another problem occurred where the footnote numbers did not start
   at 1 (after I thought I had fixed the linking issue). I fixed that problem by
   turning off “the_post:” in expert settings, but by doing that, I now can’t link
   to the bottom again. I have the setting, “in the widget area” selected.
 * When I have “the_content” and “the_post” selected, the code generated in my posts
   is like the following:
 * `<sup id="footnote_plugin_tooltip_8888_1" class="footnote_plugin_tooltip_text"
   onclick="footnote_moveToAnchor('footnote_plugin_reference_8888_1');">1)</sup>`
 * This is what is causing my linking issue. the number _8888 is added which is 
   not at the bottom where the footnotes are displayed. This number is a random 
   number. It changes each time I refresh the page, and it is different for each
   footnote.
 * When I turn “the_post” off, that number disappears and I get the right javascript:
 * `<sup id="footnote_plugin_tooltip_1" class="footnote_plugin_tooltip_text" onclick
   ="footnote_moveToAnchor('footnote_plugin_reference_1');">1)</sup>`
 * However, now my footnotes in the widget disappear so you can’t reach them at 
   the bottom of the page. When I enable “the_post” and disable “the_content” the
   footnotes show up in my widget towards the bottom, but the superscripts do not
   show within the content.
 * My original settings had both “the_post” and “the_content” selected and it worked
   ok I’m not sure when this problem occurred as I have been working on other areas
   of the website. I only noticed this after installing polylang and was testing
   each page for problems. I should point out that I if put the footnotes widget
   in a sidebar widget everything works ok. I’m only having the issue with a custom
   widget area that I place with a shortcode in my post. The custom widget code 
   I have in my functions.php file is the following:
 *     ```
       function fm_custom_widgets_init() {
       register_sidebar( array(
       'name' => 'fm_footnoes',
       'id' => 'fm_footnoes',
       'before_widget' => '<div>',
       'after_widget' => '</div>',
       'before_title' => '<h2>',
       'after_title' => '</h2>',
       ) );
       }
       add_action( 'widgets_init', 'fm_custom_widgets_init' );
       ```
   
 * After not being able to solve the issue on my development site, I created a fresh
   new site and left the default 2014 theme selected. I created one post that has
   many footnote [ref] in it. I have only your plugin and the plugin widget shortcode
   installed. In expert settings, I have all the setting selected except for “the_title”,
   but I’m still getting the faulty javascript connected with the superscripts.
 * Is there something I am missing to fix this issue?
 * Thanks for your help.
    Adrian
 * [https://wordpress.org/plugins/footnotes/](https://wordpress.org/plugins/footnotes/)

The topic ‘Javascript linking issue’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [awelsh](https://wordpress.org/support/users/awelsh/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/javascript-linking-issue/)
 * Status: not resolved