Changing wordpress wp-content folder

 In Wordpress

Add this to the bottom of the wpconfig file. where newfolder is the new name of your wp-content folder.

/* Adjust content directory to new name */
    define (‘WP_CONTENT_FOLDERNAME’, ‘newfolder’);  
     define (‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME) ;  

Add this to the bottom of the wpconfig file.  to adjust for change in folder name ie – plugins disappearing/linkage structure.
  /* Adjust for proper url relinking after folder change*/
      define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);  
    define(‘WP_CONTENT_URL’, WP_SITEURL . WP_CONTENT_FOLDERNAME);

Recommended Posts