Title: PluginURL
Last modified: April 23, 2019

---

# PluginURL

 *  [Lee Peterson](https://wordpress.org/support/users/lpeterson23/)
 * (@lpeterson23)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/pluginurl/)
 * In lightgallery/lightgallery.php on line 37, PluginURL is set to `get_bloginfo('
   wpurl' ) . '/wp-content/plugins/' . dirname( plugin_basename( $this->PluginFile))`.
   This prevents correct directory URL path lookup when WordPress is installed in
   a subdirectory.
 * Changing it to `plugin_dir_url( __FILE__ )` fixes the issue, and is much more
   elegant 😉

The topic ‘PluginURL’ is closed to new replies.

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Lee Peterson](https://wordpress.org/support/users/lpeterson23/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/pluginurl/)
 * Status: not a support question