Title: Adding more Plugins HOWTO
Last modified: December 6, 2022

---

# Adding more Plugins HOWTO

 *  Resolved [joergenlang](https://wordpress.org/support/users/joergenlang/)
 * (@joergenlang)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/)
 * Quick question: Is there any (simple) way to add the “nauticscale” plugin to 
   the installation? I’m working on a site for friends who do sailing trips.
 * I’m happy to contribute a plugin if I could find a good and not too complicated
   starting point. I’m aware of “Extensions for Leaflet Map”.
 * Any pointers and ideas are welcome!
 * J. Lang
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-more-plugins-howto%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16266104)
 * Bozdoz has a FAQ:
    [How Can I Add another Leaflet Plugin?](https://github.com/bozdoz/wp-plugin-leaflet-map#how-can-i-add-another-leaflet-plugin)
   I use this for every Leaflet plugin I have included.
 * Maybe, you can extend [`leaflet-scale`](https://github.com/bozdoz/wp-plugin-leaflet-map#leaflet-scale).
 *  Thread Starter [joergenlang](https://wordpress.org/support/users/joergenlang/)
 * (@joergenlang)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16266735)
 * Thanks a truckload!
    I’ll try that.
 * J. Lang
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16268560)
 * I tried it out today. However, I have a shortcode `[php] ... [/php]` to run php.
 *     ```
       <!-- wp:shortcode -->
       [php]
       wp_enqueue_script('nauticscale', &quot;https://mydomain.tld/path/to/js/leaflet.nauticscale.js&quot;, array('wp_leaflet_map'), null);
       [/php]
       <!-- /wp:shortcode -->
   
       <!-- wp:shortcode -->
       [leaflet-map]
       [leaflet-scale]
       <!-- /wp:shortcode -->
   
       <!-- wp:html -->
       <script>
       window.WPLeafletMapPlugin = window.WPLeafletMapPlugin || [];
       window.WPLeafletMapPlugin.push(function () {
       var map = window.WPLeafletMapPlugin.getCurrentMap();
       map.addControl(new L.Control.ScaleNautic({
       metric: false,
       imperial: false,
       nautic: true
       }));
       });
       </script>
       <!-- /wp:html -->
       ```
   
    -  This reply was modified 3 years, 6 months ago by [hupe13](https://wordpress.org/support/users/hupe13/).
    -  This reply was modified 3 years, 6 months ago by [hupe13](https://wordpress.org/support/users/hupe13/).
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16268567)
 * Replace `&quot;` with `"`.
 *  Thread Starter [joergenlang](https://wordpress.org/support/users/joergenlang/)
 * (@joergenlang)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16268959)
 * Awesome and thanks again!

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

The topic ‘Adding more Plugins HOWTO’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [joergenlang](https://wordpress.org/support/users/joergenlang/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/adding-more-plugins-howto/#post-16268959)
 * Status: resolved