-1

how to change location of the plugins & wordpress themes folder I am waiting for reply and in which file changes required also mention please....

2
  • There are many answer for your question on our site. Please use the search.
    – fuxia
    Oct 25, 2013 at 14:20
  • You were lucky and there's a very good answer down here, but please try to ask better the next time: How to Ask
    – brasofilo
    Oct 25, 2013 at 14:36

1 Answer 1

1

You can't move only those folders.

You can move the plugins folder in the wp-config.php file:

Quoted text from WordPress Codex:

Set WP_PLUGIN_DIR to the full local path of this directory (no trailing slash), e.g.

define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/blog/wp-content/plugins' );

OR:

Set WP_PLUGIN_URL to the full URI of this directory (no trailing slash), e.g.

define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins' );

Quoted text from WordPress Codex:

If you have compability issues with plugins Set PLUGINDIR to the full local path of this directory (no trailing slash), e.g.

define( 'PLUGINDIR', dirname(__FILE__) . '/blog/wp-content/plugins' );

NOTE: This stuff changes over time and this is an advanced setting. Read the entire linked page before editing and follow the examples set there. Not the one here which may eventually be out of date.


You can move the entire wp-content folder (plugins, themes, uploads, etc.).

Quoted text from WordPress Codex:

Set WP_CONTENT_DIR to the full local path of this directory (no trailing slash), e.g.

define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/blog/wp-content' );

OR:

Set WP_CONTENT_URL to the full URI of this directory (no trailing slash), e.g.

define( 'WP_CONTENT_URL', 'http://example/blog/wp-content' );

NOTE: This stuff changes over time and this is an advanced setting. Read the entire linked page before editing and follow the examples set there. Not the one here which may eventually be out of date.


3
  • We can set the whole wp-content to be elsewhere too.
    – brasofilo
    Oct 25, 2013 at 14:31
  • Thanks @brasofilo . I pasted wrong. Look past the first NOTE: block. Oct 25, 2013 at 14:32
  • Wouldn't it be advisable to also set FTP_CONTENT_DIR, FTP_PLUGIN_DIR accordingly (with respect to updates) ?
    – Frank N
    Sep 6, 2015 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.