指定图像的相对位置

时间:2014-10-01 18:13:26

标签: wordpress wordpress-theming

今天上午工作时发生了一些有趣的事情。我们的Wordpress网站没有备份,用户更新了主题。我们正在使用Atahualpa 3.7.12并升级到3.7.14。更新后不久,图像丢失并开始显示一些默认图像。

我的图片有此表格

http://<website>/wp-content/uploads/2013/06/Tractor.png
http://<website>/wp-content/uploads/2012/05/home-header.png

但是当我查看调试器时,我发现它指向

http://<website>/wp-content/themes/atahualpa/images/2013/06/Tractor.png

我没有使用Wordpress并尝试恢复图像的经验。我在看

Atahualpa Theme Options -> Image Location -> Relative location of images which has the Default.

我将其更改为以下内容:

Relative location of images? wp-content (which is the only other option in the dropdown)
Images Directory to uploads but the image is still not showing up.

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

要尝试的一件事是重新开始永久链接。转到设置&gt;&gt;永久链接并点击保存。有时重新保存这些有帮助。这里不是一个有保证的解决方案,但值得一试。

或者,在使用Atahulpa主题选项中的设置后,您应该访问您的网站到其中一个缺少主题的页面。使用Google Chrome,右键单击图像并点击Inspect Element。这将显示正在尝试指向的路径的HTML。然后,您可以查看主题选项中的设置是否适合您。