【发布时间】:2014-06-03 02:48:15
【问题描述】:
我制作了一个网站的 html / css 模型,并希望将该静态网站集成到 wordpress 中。但是,图像没有出现,我将图像的路径作为 url localhost/wordpress/logo.png。
我正在本地主机上开发它,所以主题在localhost/wordpress/wp-content/themes/mytheme
以及localhost/wordpress/wp-content/themes/mytheme/images/上的图片。
我听说每张图片都必须使用一些 php 代码。有人可以帮我吗?
【问题讨论】:
-
你的问题中没有任何代码,很难确定问题。
-
如果你的图片的 url 是
localhost/wordpress/logo.png为什么你会期望在localhost/wordpress/wp-content/themes/mythemes/images中找到它?此外,图片不应该放在 wordpress 中,它们放在../wordpress/wp-content/uploads -
你如何/在哪里插入图片?