Title: [Plugin: Superb slideshow gallery] plugin location is hard coded
Last modified: August 20, 2016

---

# [Plugin: Superb slideshow gallery] plugin location is hard coded

 *  [PeoplesGeek](https://wordpress.org/support/users/peoplesgeek/)
 * (@peoplesgeek)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-superb-slideshow-gallery-plugin-location-is-hard-coded/)
 * Hi Gopi,
 * Thanks for the plugin – I have noticed that the location of the plugin is hard
   coded in superb-slideshow-gallery.php & image-management.php & superb-slideshow-
   gallery.js
    I have a different location for my wp-content directory as per [http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content](http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content)
   and the plugin is looking for it’s .js files in the wrong place.
 * for example: line 314 of superb-slideshow-gallery.php (version 10)
 *     ```
       define('WP_CONTENT_DIR', 'S:\xxx\tlc'); // no host name, no trailing backslash
       define('WP_CONTENT_URL', 'http://www.home.pc/xxx/tlc');
       define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins'); // no host name, no trailing backslash
       define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
       ```
   
 *     ```
       wp_enqueue_script( 'jquery.min', get_option('siteurl').'/wp-content/plugins/superb-slideshow-gallery/inc/jquery.min.js');
       wp_enqueue_script( 'superb-slideshow-gallery', get_option('siteurl').'/wp-content/plugins/superb-slideshow-gallery/inc/superb-slideshow-gallery.js');
       ```
   
 * can you change this to use the safer method:
    `wp_enqueue_style("xxxxx", plugin_dir_url(
   __FILE__). "css/xxxxx.css" );`
 * There are also some hard coded paths in the java files.
 * With hard coding the plugin can’t be used on sites where wp-content is moved 
   without hacking and more work on upgrades for the users.
 * Many thanks!
 * [http://wordpress.org/extend/plugins/superb-slideshow-gallery/](http://wordpress.org/extend/plugins/superb-slideshow-gallery/)

The topic ‘[Plugin: Superb slideshow gallery] plugin location is hard coded’ is 
closed to new replies.

 * ![](https://ps.w.org/superb-slideshow-gallery/assets/icon-256x256.png?rev=1017795)
 * [Superb slideshow gallery](https://wordpress.org/plugins/superb-slideshow-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/superb-slideshow-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/superb-slideshow-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/superb-slideshow-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/superb-slideshow-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/superb-slideshow-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [PeoplesGeek](https://wordpress.org/support/users/peoplesgeek/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-superb-slideshow-gallery-plugin-location-is-hard-coded/)
 * Status: not resolved