Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong template directory when putting installation in subdirectory. #27

Open
dardub opened this issue May 30, 2013 · 1 comment
Open

Comments

@dardub
Copy link

dardub commented May 30, 2013

Setting up wordpress in http://mydomain.com/blog

Using function get_template_directory_uri() or it's aliases returns the path
http://mydomain.com/content/themes/theme-name/

rather than
http://mydomain.com/blog/content/themes/theme-name/

@ianchanning
Copy link

I'm pretty sure this is down to the WP_CONTENT_URL in wp-config.php. The WordPress-Skeleton is assuming that you're putting it at the root of the site. If you want to put it in a subdirectory blog then the following should work;

define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/blog/content' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants