child theme is broken?
-
Hi there,
I am new to creating a child theme and have been following instructions on how to create a style.css and function.php. When I then go to themes in wordpress, it shows as broken: https://snipboard.io/1NUxio.jpg. I am not sure what I am doing wrong as the instructions I followed did not mention a header or index.
Any help would be appriciated!
Best,
ChrisMy style.css:
/*
 Theme Name:  Dokan Child
 Theme URI:   http://pleazo.com/dokan-child/
 Description: Dokan Child Theme
 Author:      John Doe
 Author URI:  http://pleazo.com
 Template:    dokan
 Version:     1.0.0
 License:     GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags:        light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain: dokanchild
*/my functions.php:
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
$parent_style = ‘parent-style’; // This is ‘dokan-style’ for the Dokan theme.
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’)
);
}
The topic ‘child theme is broken?’ is closed to new replies.