Php 无法从“图像”文件夹中获取img
到Php 无法从“图像”文件夹中获取img,php,wordpress,.htaccess,Php,Wordpress,.htaccess,到03.png的实际路径是: public_html/wp-content/themes/discovery/images/03.png footer.php(放置在主题根目录中): 这是我的.htaccess文件,放在public_html中 # Do not remove this line, otherwise mod_rewrite rules will stop working RewriteBase / 我尝试了各种文件/文件夹权限-755-744-644,但没有成功 任何帮助
03.png
的实际路径是:
public_html/wp-content/themes/discovery/images/03.png
footer.php(放置在主题根目录中):
这是我的.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">
“alt=”top“>
试试这个
<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">
“alt=”top“>
@Starkeen,这是我的htaccess
文件。我在wordpress帮助中看不到我需要在其中写入内容的地方。@Starkeen,这是我的htaccess
文件。我在wordpress的帮助中看不到我需要在其中写点什么。
<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">