Title: Image location
Last modified: August 21, 2016

---

# Image location

 *  Resolved [duce](https://wordpress.org/support/users/duce/)
 * (@duce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-location-2/)
 * The gallery path cannot be set to the root of the website folder. It defaults
   back to: “wp-content/gallery/”
    Is it possible to change this? Or will this be
   changed in a future release?
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018164)
 * [@duce](https://wordpress.org/support/users/duce/): are you unable to change 
   the path at all, or is it just not allowing a change to the root?
 *  Thread Starter [duce](https://wordpress.org/support/users/duce/)
 * (@duce)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018176)
 * Just not allowing to change to root: gallery/
    It reverts back to: wp-content/
   gallery
 * I quickly tried changing this line in file: class.nextgen_settings_installer.
   php
 *     ```
       $this->_local_settings = array(
                               'gallerypath'    => 'gallery',
       ```
   
 * And it seems to kinda work.
    However importing folders it defaults to import 
   files from: plugins, themes, uploads.
 *  Thread Starter [duce](https://wordpress.org/support/users/duce/)
 * (@duce)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018365)
 * Okay, seriously please.
    This is a make or break situation for me.
 * If I cannot set the gallery folder to the root folder of the website I have to
   start looking at using another system altogether. And I have 10+ websites running
   NextGen. It would be a waste of money purchasing the pro version.
 * I have just tested in all ways possible to get the layout and gallery and file
   paths sorted.
 * My galleries consists of main folders with lots of sub folders.
    Example: domain.
   tld/gallery/ domain.tld/gallery/Flowers/ domain.tld/gallery/Flowers/2013/ domain.
   tld/gallery/Flowers/2013-08-09/ domain.tld/gallery/Flowers/2013-08-09/Orange/
 * All image files are uploaded using SCP (like FTP) to the websites. From there
   the Add Gallery / Images -> Import Folder is used to import the images and it
   creates the thumbnails.
 * It however does not create the thumbnails in the folder the images are located
   but in fact creates a new “orange” folder in domain.tld/gallery/
 * Please can we give this some priority as I have sites doing over 2 million hits
   a month and would really love to go for the Pro version with all its nice features
   such as social sharing.
 *  Thread Starter [duce](https://wordpress.org/support/users/duce/)
 * (@duce)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018397)
 * And to this day not one single response!
 *  [c-m](https://wordpress.org/support/users/c-m/)
 * (@c-m)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018450)
 * I also need to import folders form my site root e.g mydomain.tld/ but so far 
   there doesn’t seem a way to do this in next gen. I might have to seek out alternatives
   too.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018451)
 * [@duce](https://wordpress.org/support/users/duce/), [@c-m](https://wordpress.org/support/users/c-m/)–
   Currently either (you only need one of them) of these definition statements added
   to your `wp-config.php` will allow for importing from the root of your WordPress
   installation:
 *     ```
       define('NEXTGEN_GALLERY_IMPORT_ROOT', ABSPATH);
       define('NEXTGEN_GALLERY_IMPORT_ROOT', dirname(__FILE__) . '/');
       ```
   
 * Please note, with our next release the `NEXTGEN_GALLERY_` prefix will be changing
   to `NGG_` … if you use these definitions you will need to modify them after the
   next update.
 *  [c-m](https://wordpress.org/support/users/c-m/)
 * (@c-m)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018452)
 * Neither of those work.
 * Here’s the scenario.
 * My site is at [http://www.mydomain.com](http://www.mydomain.com)
 * All of my wordpress files are in [http://www.mydomain.com/wordpress](http://www.mydomain.com/wordpress)
 * All of my images are in [http://www.mydomain.com/assets/images](http://www.mydomain.com/assets/images)(
   this is where I’ve set nextgen to upload to)
 * Using your code above will only let me import from within [http://www.mydomain.com/wordpress](http://www.mydomain.com/wordpress)
 * I need to be able to import from [http://www.mydomain.com/assets/](http://www.mydomain.com/assets/)
 * hope that helps make it a bit clearer.

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

The topic ‘Image location’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

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

 * 7 replies
 * 3 participants
 * Last reply from: [c-m](https://wordpress.org/support/users/c-m/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/image-location-2/#post-4018452)
 * Status: resolved