Title: Hard-coded paths and directories&#8230;
Last modified: August 22, 2016

---

# Hard-coded paths and directories…

 *  Resolved [dahlskebank](https://wordpress.org/support/users/dahlskebank/)
 * (@dahlskebank)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-paths-and-directories/)
 * I like Jssor Slider. It looks neat. So I was very happy to see someone had made
   a plugin for WordPress. But you have hard-coded directories for wp-content and
   plugins… I never use wp-content for any of my WordPress projects.
 * You should consider revising this part:
 *     ```
       if ( !defined( 'JSSOR_CONTENT_DIR' ) ) define( 'JSSOR_CONTENT_DIR', ABSPATH . 'wp-content' );
       	if ( !defined( 'JSSOR_MAIN_DIR' ) ) define( 'JSSOR_MAIN_DIR', ABSPATH . 'wp-content/jssor-slider' );
       	if ( !defined( 'JSSOR_MAIN_UPLOAD_DIR' ) ) define( 'JSSOR_MAIN_UPLOAD_DIR', ABSPATH . 'wp-content/jssor-slider/jssor-uploads/' );
       	if ( !defined( 'JSSOR_MAIN_THUMB_DIR' ) ) define( 'JSSOR_MAIN_THUMB_DIR', ABSPATH . 'wp-content/jssor-slider/thumbs/' );
       	if ( !defined( 'JSSOR_CONTENT_URL' ) )  define( 'JSSOR_CONTENT_URL', site_url() . '/wp-content' );
       	if ( !defined( 'JSSOR_PLUGIN_DIR' ) ) define( 'JSSOR_PLUGIN_DIR', JSSOR_CONTENT_DIR . '/plugins' );
       	if ( !defined( 'JSSOR_PLUGIN_URL' ) ) define( 'JSSOR_PLUGIN_URL', JSSOR_CONTENT_URL . '/plugins' );
       	if ( !defined( 'JSSOR_SL_PLUGIN_FILENAME' ) ) define( 'JSSOR_SL_PLUGIN_FILENAME', basename(__FILE__) );
       	if ( !defined( 'JSSOR_SL_PLUGIN_DIRNAME' ) ) define( 'JSSOR_SL_PLUGIN_DIRNAME', plugin_basename( dirname(__FILE__) ) );
       	if ( !defined( 'JSSOR_SL_PLUGIN_DIR' ) ) define( 'JSSOR_SL_PLUGIN_DIR', JSSOR_PLUGIN_DIR . '/' . JSSOR_SL_PLUGIN_DIRNAME );
       	if ( !defined( 'JSSOR_SL_PLUGIN_URL' ) ) define( 'JSSOR_SL_PLUGIN_URL', site_url() . '/wp-content/plugins/' . JSSOR_SL_PLUGIN_DIRNAME );
       	if ( !defined( 'JSSOR_SLIDER_PATH' ) )  define( 'JSSOR_SLIDER_PATH', plugin_dir_path( __FILE__ ) );
   
       	if ( !defined( 'JSSOR_SL_THUMB_URL' ) ) define( 'JSSOR_SL_THUMB_URL', site_url() . '/wp-content/jssor-slider/jssor-uploads/' );
       	if ( !defined( 'JSSOR_SL_THUMB_SMALL_URL') ) define( 'JSSOR_SL_THUMB_SMALL_URL', site_url() . '/wp-content/jssor-slider/thumbs/' );
       ```
   
 * [https://wordpress.org/plugins/jssor-slider/](https://wordpress.org/plugins/jssor-slider/)

Viewing 1 replies (of 1 total)

 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-paths-and-directories/#post-5778143)
 * [@dahlskebank](https://wordpress.org/support/users/dahlskebank/)
 * The hard-coded path and directories have been fixed, please check the newer version
   of the plugin, and thanks for pointing that out,have not properly taken a look
   at those path and directories until now.
 * Thank you .

Viewing 1 replies (of 1 total)

 The topic ‘Hard-coded paths and directories…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jssor-slider_666870.svg)
 * [Jssor Slider by jssor.com](https://wordpress.org/plugins/jssor-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/jssor-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/jssor-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jssor-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jssor-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-paths-and-directories/#post-5778143)
 * Status: resolved