Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
localhost/wordpress/wp content/themes/mysitename上的空白页_Wordpress_Screen_Localhost_Mamp - Fatal编程技术网

localhost/wordpress/wp content/themes/mysitename上的空白页

localhost/wordpress/wp content/themes/mysitename上的空白页,wordpress,screen,localhost,mamp,Wordpress,Screen,Localhost,Mamp,我正在创建我自己的WordPress主题,我已经用MAMP在本地设置了它。一切正常,当我在浏览器中输入localhost/wordpress时,主题就会出现。但当我输入localhost/wordpress/wp content/themes/mysitename时,它只是一个白色的空白页面 在主题下的WordPress仪表板中,“我的主题”旁边的图像也为空 我怎样才能让它出现?提前谢谢 WordPress使用前端控制器系统,其中所有站点流量都通过站点根目录中的index.php文件 将浏览器定

我正在创建我自己的WordPress主题,我已经用MAMP在本地设置了它。一切正常,当我在浏览器中输入localhost/wordpress时,主题就会出现。但当我输入localhost/wordpress/wp content/themes/mysitename时,它只是一个白色的空白页面

在主题下的WordPress仪表板中,“我的主题”旁边的图像也为空


我怎样才能让它出现?提前谢谢

WordPress使用前端控制器系统,其中所有站点流量都通过站点根目录中的index.php文件

将浏览器定向到“localhost/wordpress/wp content/themes/mysitename”会绕过主控制器,这意味着您将完全绕过wordpress并尝试直接访问服务器上的文件。该目录需要包含index.html或index.php文件才能生成某种输出

为了在管理员中的自定义主题旁边有一个图像,您需要创建主题的屏幕截图,并将其命名为“屏幕截图”(可以是jpg或png),然后将其放置在主题的根文件夹中。查看其他WP主题文件夹中我所说的示例