admin管理员组文章数量:1130349
I don't understand what is missing when the Install is reporting success, but the Themes page is reporting a Broken Theme. styles.css and functions.php included below.
Thank you, in advance, for your help!
When I installed the child theme, it seemed to find the parent.
Installing Theme from uploaded file: wp-velux-child.zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme, Velux 1.1.3, is currently installed.
Theme installed successfully.
But the theme page is reporting the theme is broken
Broken Themes
The following themes are installed but incomplete.
Name Description
Velux Child The "velux" theme is not a valid parent theme.
styles.css:
/*
Theme Name: Velux Child
Theme URI:
Description: Velux Child Theme
Author: Jonathan Brown
Author URI: /
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: .0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: velux
Template: velux
*/
functions.php
<?php
function my_theme_enqueue_styles() {
$parent_style = 'velux';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
I don't understand what is missing when the Install is reporting success, but the Themes page is reporting a Broken Theme. styles.css and functions.php included below.
Thank you, in advance, for your help!
When I installed the child theme, it seemed to find the parent.
Installing Theme from uploaded file: wp-velux-child.zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme, Velux 1.1.3, is currently installed.
Theme installed successfully.
But the theme page is reporting the theme is broken
Broken Themes
The following themes are installed but incomplete.
Name Description
Velux Child The "velux" theme is not a valid parent theme.
styles.css:
/*
Theme Name: Velux Child
Theme URI: https://github/djjonbrown/wp-velux-child
Description: Velux Child Theme
Author: Jonathan Brown
Author URI: https://github/djjonbrown/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: velux
Template: velux
*/
functions.php
<?php
function my_theme_enqueue_styles() {
$parent_style = 'velux';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Share
Improve this question
asked Sep 23, 2018 at 21:09
Jonathan BrownJonathan Brown
11 bronze badge
1 Answer
Reset to default 0From what I can tell Velux is a child theme of the Primer theme. I just made the same mistake... Velux is not a valid parent theme because it is a child theme!
I don't understand what is missing when the Install is reporting success, but the Themes page is reporting a Broken Theme. styles.css and functions.php included below.
Thank you, in advance, for your help!
When I installed the child theme, it seemed to find the parent.
Installing Theme from uploaded file: wp-velux-child.zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme, Velux 1.1.3, is currently installed.
Theme installed successfully.
But the theme page is reporting the theme is broken
Broken Themes
The following themes are installed but incomplete.
Name Description
Velux Child The "velux" theme is not a valid parent theme.
styles.css:
/*
Theme Name: Velux Child
Theme URI:
Description: Velux Child Theme
Author: Jonathan Brown
Author URI: /
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: .0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: velux
Template: velux
*/
functions.php
<?php
function my_theme_enqueue_styles() {
$parent_style = 'velux';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
I don't understand what is missing when the Install is reporting success, but the Themes page is reporting a Broken Theme. styles.css and functions.php included below.
Thank you, in advance, for your help!
When I installed the child theme, it seemed to find the parent.
Installing Theme from uploaded file: wp-velux-child.zip
Unpacking the package…
Installing the theme…
This theme requires a parent theme. Checking if it is installed…
The parent theme, Velux 1.1.3, is currently installed.
Theme installed successfully.
But the theme page is reporting the theme is broken
Broken Themes
The following themes are installed but incomplete.
Name Description
Velux Child The "velux" theme is not a valid parent theme.
styles.css:
/*
Theme Name: Velux Child
Theme URI: https://github/djjonbrown/wp-velux-child
Description: Velux Child Theme
Author: Jonathan Brown
Author URI: https://github/djjonbrown/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: velux
Template: velux
*/
functions.php
<?php
function my_theme_enqueue_styles() {
$parent_style = 'velux';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Share
Improve this question
asked Sep 23, 2018 at 21:09
Jonathan BrownJonathan Brown
11 bronze badge
1 Answer
Reset to default 0From what I can tell Velux is a child theme of the Primer theme. I just made the same mistake... Velux is not a valid parent theme because it is a child theme!
本文标签: installationReporting Broken Theme event though upload was success
版权声明:本文标题:installation - Reporting Broken Theme event though upload was success 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749231234a2336522.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论