Support » Fixing WordPress » Newbie: No styling from remote machine

  • Hi,
    I am playing with WordPress to see what it can do. I have installed WP 1.2, Apache, PHP 4.3.8 on WXP Pro on a two PC 192.168.x.x network.
    When I go to http://localhost/wpblog (this is where the WP directory is) I have the CSS styling. When I however try to connect from the remote PC with http://192.168.0.x/wpblog to the same PC, I get the data but no CSS styling is available.
    Can anybody shed some light on this situation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mark (podz)


    Support Maven

    Check your path to the CSS ?
    If it’s absolute, alter it to relative and vice versa ?

    But being a newbie; Where do I check the path to the CSS?
    BTW, The same thing happens on the localhost when I use Virtual hosts.

    Mark (podz)


    Support Maven

    When you see your blog in your browser – styled or not – select “View Source” from the browser menu.
    It will say something like this:
    <style type="text/css" media="screen">
    @import url( );

    <style type="text/css" media="screen">
    @import url( wp-layout.css );

    The first is an absolute path, the second is a relative path.
    The absolute path is created by this line in index.php:
    <style type="text/css" media="screen">
    @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );

    That’s the norm.
    You can change it to
    <style type="text/css" media="screen">
    @import url(wp-layout.css );

    to try a relative path.

    Thanks, this must be it.
    I tried it on the virual hosting side, and it worked. I will try it with the two PC setup when I’m at home later.

    Podz – I’m having same issue w/ my test PC at home…. NOTHING works…. I’ve tried relative, I’ve tried absolute…. for some reason, some of the CSS just doesn’t work – It’s weird because I get all the text styling, but none of the images and none of the positioning…. The only thing I haven’t tried is using it against localhost instead of the IP address…

    Now it is OK!
    How it worked out: I created virtual hosts. I installed WordPress again (after deleting the old database, and creating a new one). I used the hosts file in both computers to point the respective PC’s to each other’s virtual hosts.
    Before I had moved the webroot after I had configured WordPress.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Newbie: No styling from remote machine’ is closed to new replies.