wordpress图像相对路径给出404

时间:2017-11-30 20:45:47

标签: php wordpress

使用产生正确路径的<img src="<?php echo get_directory_uri()?>/assets/img/animation-background-blur.jpg">:site / assets / img / animation-background-blur.jpg返回404.使用chmod 755将终端权限更改为img文件夹。

获取错误:Failed to load resource: the server responded with a status of 404 (Not Found)

在localhost上,确认数据库正在运行,不知道该怎么做。

1 个答案:

答案 0 :(得分:0)

确保你不要忽略你的分号和回声!

答案:<img src="<?php echo get_template_directory_uri(); ?>/assets/img/animation-background.jpg" />

相关问题