In your wp-config.php
, set the following constants:
define('WP_SITEURL', 'http://192.168.1.93/wordpress');
define('WP_HOME', 'http://192.168.1.93/wordpress');
When you serve your wordpress site from your local computer, all theme related files are probably served from localhost
or 127.0.0.1
, which are addresses which always point to "the local computer". So, when you access the website from another computer, it tries to fetch the CSS files and images from the other computer and not from the serving one.
By setting the before mentioned constants, you force Wordpress to serve the files from the given IP address.
Please remember to remove those constants from the wp-config.php
file when you deploy your website to an actual server.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…