css - Wordpress 主题骨骼中缺少样式表

标签 css wordpress

过去几周一直在网站上工作。直到今天才遇到问题,当我加载网站时它说主题已安装但不完整,缺少样式表。此图像显示我的问题:http://i.stack.imgur.com/QZoQR.png

我进入了我服务器上的 style.css,没有发现任何错误。这是 style.css 文件的前几行:http://i.stack.imgur.com/xRB8P.jpg

有谁知道如何解决这个问题,因为该网站不适合我,需要尽快完成。

最佳答案

在您的 style.css 中,您缺少 WordPress 加载主题所需的信息。以下是来自法典的示例:https://codex.wordpress.org/Theme_Development

/*
Theme Name: Twenty Thirteen
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

您至少需要有主题名称

关于css - Wordpress 主题骨骼中缺少样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36377468/

相关文章:

CSS 动画仅在 iPad 上使 Safari 崩溃

css - NgbDropdown : remove dropdown arrow

php - 如何在内联 block 中输出 mysqli 查询行?

html - ie8 打破 float :left into 2 rows

php - 如何在不使用 wp-login.php 的情况下从 WordPress 注销?

php - Wordpress - 使用媒体库获取图像

php - WordPress MySQL 查询结果 - 如何突出显示在显示表中找到的字符串

php - 对多行进行连接查询以进行搜索

css - css @import google font 是否比网站优化的本地副本更好

某些帖子/页面上的 CSS 不显示在移动设备上