WordPress 主题无法识别,因为样式表丢失 [英] WordPress theme is not being recognized because Stylesheet is missing
问题描述
我最初尝试通过 WordPress 仪表板安装主题没有成功,并给了我以下错误:主题缺少 style.css 样式表.
My original attempt to install the theme through WordPress dashboard did not work and gave me the following error: The theme is missing the style.css stylesheet.
所以我手动将解压后的文件上传到 wp-content/themes 下的 New Theme 文件夹中.现在我正在查看 wp-content/themes 文件夹中的 css 文件,它们都在那里,并且与我最初下载的 zip 文件中的原始文件相匹配.
So I manually uploaded the unzipped files into a New Theme folder under wp-content/themes. Now I’m looking at my css files in wp-content/themes folder they are all there and match-up to the original files in the zip file which I originally downloaded.
我尝试按照某些 WordPress 论坛的建议将文件从原始子目录上移,但样式表丢失"仍然显示在破碎的主题"下.
I tried moving files up from the original sub-directory as some of the WordPress forums suggested, but "Stylesheet is missing" still shows up under Broken Themes.
推荐答案
我在下载主题时遇到了这个问题,我想通了!
I had this problem when I downloaded my theme, and I figured it out!
您不必上传下载的所有内容的 zip 文件:您必须进入主文件夹并找到主题文件夹,然后将其压缩,然后上传.我保证,它又快又容易!:)
You don't upload a zip file of everything you downloaded: you have to go INSIDE the main folder and find the theme folder, and zip that, then upload it. I promise, it's quick and easy! : )
这篇关于WordPress 主题无法识别,因为样式表丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!