Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have defined in my config:

define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/somedirectory' );

after Codex: Editing WP Config

BUT <?php echo get_template_directory_uri(); ?> prints out:

http://dev.domain.com/wp-content/themes/mytheme

Even though it should print out

http://dev.domain.com/somedirectory/themes/mytheme

Has anyone else experienced this or know of a fix?

share|improve this question
1  
As @user51755 said, you need to define WP_CONTENT_URL too :) –  TheDeadMedic May 16 at 15:12

1 Answer 1

This is how i set my content directory in wp-config.php

// ========================
// Custom Content Directory
// ========================
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/somedir' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/somedir' );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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