sela child theme error in dashboard (appearance > themes)
-
Hi, Everyone.
I’m running into the following issue while trying to create a sela-child theme.Error in appearance – themes
Sela child
Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.I have a stela-child folder which includes a function.php to enqueue both the parent style and the child style. It also contains a style.css file with the appropriate header information.
Any thoughts on what might be causing this issue?
functions.php
<?php function my_theme_enqueue_styles() { $parent_style = 'sela-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'sela-child', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
style.css
/* Theme Name: Sela child Theme URI: https://www.careerloveco.com/wp-content/themes/sela-child/ Description: Sela is not your typical business theme. Vibrant, bold, and clean, with lots of space for large images, this theme will look great on all devices, from desktop to mobile. Version: 1.0.15 Author: Automattic Author URI: https://wordpress.com/themes/ License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: sela-child Tags: blog, custom-background, custom-colors, custom-menu, featured-images, full-width-template, microformats, right-sidebar, rtl-language-support, sticky-post, translation-ready, two-columns */
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘sela child theme error in dashboard (appearance > themes)’ is closed to new replies.