真正的
03.png
路径是:
public_html/wp-content/themes/discovery/images/03.png
页脚.php(放置在主题根目录内(:
<img id="smoothup" src="images/03.png" alt="top">
<img id="smoothup" src="<?php bloginfo('template_directory');?>images/03.png" alt="top">
<img id="smoothup" src="<?php bloginfo('template_url');?>images/03.png" alt="top">
<img id="smoothup" src="<?php get_bloginfo('template_url');?>images/03.png" alt="top">
在每种情况下,控制台都说:
GET http://matria63.netai.net/images/03.png 404 (Not Found)
这是我的.htaccess文件,放在public_html
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
我尝试使用各种文件/文件夹权限 - 755 - 744 - 644
- 但没有成功。
任何帮助。
试试这个
<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">