我创造了一种新的风格。css并在子主题中使用它。我在wp-content中创建了一个新文件夹,并将其命名为themename-child,然后上传样式。我创建的css。现在,我转到wp dashboard->Appearance->Themes,查看我创建的子主题。我发现了这个错误:
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name Description
Accesspress Lite The parent theme is missing. Please install the "AccesspressLite" parent theme.
以下是css子主题格式:/*
Theme Name: Accesspress Lite
Theme URI: http://access-keys.com/accesspresslite/
Description: Accesspress Lite Child Theme
Author: Yang
Author URI: http://www.example.com
Template: accesspress-lite
Version: 2
Tags: blue, white, light, custom-menu, one-column, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, custom-background, featured-image-header, sticky-post, theme-options, threaded-comments, featured-images, full-width-template, custom-header, flexible-header, responsive-layout
Text Domain: accesspress-lite-child
*/
@import url("../accesspress-lite/style.css");