外部计算机上的wordpress博客上没有CSS/格式 [英] No CSS/formatting on wordpress blog from external computers

查看:210
本文介绍了外部计算机上的wordpress博客上没有CSS/格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用

I'm trying to set up a wordpress blog hosted from my computer using this tutorial. When I visit the site on the computer it's hosted on, via localhost or the IP of the computer, the site looks fine, but when I visit it from another computer it looks like this.

推荐答案

所有Wordpress资源(至少是样式表和图像)都使用Wordpress的URL配置.您可以在管理员"的常规配置"页面中找到它作为第三个选项.这是由于使用 bloginfo函数对主题进行编程并创建博客标题的方式所致使用这些配置值来生成其余的

All Wordpress resources (stylesheets and images at least) use Wordpress' URL configuration. You can find it as the 3rd option down in the General Configuration page of your Admin. This is due to the way that themes are to be programmed and create the header of the blog using the bloginfo function that uses those configuration values to generate the rest of them

可能发生的情况是该URL正在使用localhost或127.0.0.1.如果是这种情况,那么当您从自己的PC访问博客时,由于两者都可以解析为本地计算机,因此可以正常显示.如果您从外部PC访问它,则它们将不能解析为服务于Wordpress的PC,也不能解析为无法提供它们的本地PC.

What is probably happening is that such URL is using either localhost or 127.0.0.1. If that is the case, when accessing the blog from your own PC it would show fine as both do resolve to the local machine. If you access it from an external PC, they would not resolve to the PC that is serving Wordpress but also to the local PC - which is not able to provide them.

这篇关于外部计算机上的wordpress博客上没有CSS/格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆