即使将其转换为 wordpress 主题,HTML 模板也不起作用 [英] HTML template is not working even after converting it into wordpress theme

查看:41
本文介绍了即使将其转换为 wordpress 主题,HTML 模板也不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一个 HTML 模板并将其转换为 Wordpress 主题.但我发现以下错误破碎的主题

I have downloaded an HTML template and converted it into Wordpress theme.But I find following error "Broken Themes

以下主题已安装但不完整.主题必须有一个样式表和一个模板.名称 说明主题样式表丢失."

The following themes are installed but incomplete. Themes must have a stylesheet and a template. Name Description stheme Stylesheet is missing."

有人可以帮我吗?

推荐答案

当您的 wordpress 模板缺少样式表时会出现此错误.您的模板文件夹应包含 style.css 作为主样式表才能正常工作.

This error comes when your wordpress template has missing stylesheet. Your template folder should contain style.css as main stylesheet in order to work properly.

Main files required for Theme

style.css
index.php
header.php
footer.php
page.php
single.php
images folder
css folder

Other files required for theme.
author.php
category.php
tag.php
put style.css in theme folder not in css folder inside your theme.

你所有的 css 声明都应该在 style.css 中

all your css declarations should come in style.css

这篇关于即使将其转换为 wordpress 主题,HTML 模板也不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆