Home > Web Front-end > CSS Tutorial > WordPress installation theme package prompts that style.css is missing and cannot be installed. Solution

WordPress installation theme package prompts that style.css is missing and cannot be installed. Solution

高洛峰
Release: 2016-11-24 09:51:13
Original
2541 people have browsed it

When installing a wordpress theme, I sometimes encounter the prompt "Theme is missing the style.css style sheet". I have encountered such a problem. I found many ways to check it online, and finally solved it perfectly. I don’t know what is the reason for your problem, so I will share the methods I found online:

1. The first thing we need to check is whether there is this file in the theme folder

For example, the theme daohang

is usually Save it under the themes folder

I will look for this path: themes/daohang/

See if there is a style.css file here

If not, then check to see if the theme is complete. If not, upload it less , just upload it to solve the problem.

If the theme itself does not have this file, it means that this theme does not meet the requirements of the WP blog theme package, modify or replace other themes by yourself

2. If themes/daohang/style.css exists

We need to check whether the beginning of the style.css file is in the standard WP theme format.

The standard WP theme style.css has the following format at the beginning:

Usually style.css is garbled or formatted. This problem can usually be solved after formatting

3. It is also the most common that compressed package producers often compress other folders together, such as license.txt, explanatory files, and PSD layers. This will make the theme folders in the compressed package have multiple levels of nesting. If you upload the compressed package for installation, it must be a separate theme folder. Therefore, remove other contents in the compressed package, compress only the theme folder, remember it is in zip format, and re-upload it for installation. Yuewu SEO has a blog website that cannot be installed because of this problem.

4. Unzip the theme compressed package and see if there is style.css in it. If there is style.css, try changing style.css to style.


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template