WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay, currently I'm trying my WP Theme/Plugin development on LAN so that it can be accessed with multiple devices. What I noticed recently is that the way I include the CSS files makes them not to display in other devices but the host, as it gets an absolute path to "localhost", unknown in clients, instead of 192.168.1.X, and I think would happen the same when going online, as the path is get server side.

Now I include it this way:

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" title="<?php _e('Default'); ?>"/>

Is there any fix that makes use of the wp template? (I know that using a relative path would fix it, but I think thats not the way to go) Thanks :P

share|improve this question

Try changing the WP_CONTENT_DIR path in wp-config.php

Try adding:

define( 'WP_CONTENT_DIR', 192.168.X.X . '/blog/wp-content' );


share|improve this answer

Your Answer


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.