Title: Footnotes: Enqueue Style and Script
Last modified: September 28, 2016

---

# Footnotes: Enqueue Style and Script

 *  [perdrix](https://wordpress.org/support/users/perdrix/)
 * (@perdrix)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/footnotes-enqueue-style-and-script/)
 * May I be so bold as to suggest the following change in code? My OCD self cannot
   stand to see /../ in my html source… 🙂
 * /class/init.php
 * Your Code:
 *     ```
       	public function registerPublic() {
       		wp_enqueue_style('mci-footnotes-css-public', plugins_url('../css/public.css', __FILE__));
       		// add the jQuery plugin (already registered by WordPress)
       		wp_enqueue_script('jquery');
       		wp_enqueue_script('mci-footnotes-js-jquery-tools', plugins_url('../js/jquery.tools.min.js', __FILE__));
       	}
       ```
   
 * My Suggested Code:
 *     ```
       	public function registerPublic() {
       		wp_enqueue_style('mci-footnotes-css-public', plugins_url('css/public.css', dirname(__FILE__)));
       		// add the jQuery plugin (already registered by WordPress)
       		wp_enqueue_script('jquery');
       		wp_enqueue_script('mci-footnotes-js-jquery-tools', plugins_url('js/jquery.tools.min.js', dirname(__FILE__)));
       	}
       ```
   
 * Reference: [https://codex.wordpress.org/Function_Reference/plugins_url](https://codex.wordpress.org/Function_Reference/plugins_url)(
   look right above the Notes section…

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

 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/footnotes-enqueue-style-and-script/#post-8229330)
 * Hi [@perdrix](https://wordpress.org/support/users/perdrix/),
 * Yes, you are of course quite right. I’ve inherited the code from another author
   and have yet to have a “tidy up” – this is one of the things I look out for so,
   yes, a good spot. I’ll correct it in the next release 🙂
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/footnotes-enqueue-style-and-script/#post-8229334)
 * Added to the list! [http://mywpplug.in/bugtracker/index.php?do=details&task_id=438](http://mywpplug.in/bugtracker/index.php?do=details&task_id=438)

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

The topic ‘Footnotes: Enqueue Style and Script’ 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/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/footnotes-enqueue-style-and-script/#post-8229334)
 * Status: not resolved