• Resolved Lori Boone

    (@pleazo)


    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,
    Chris

    My 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’)
        );
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘child theme is broken?’ is closed to new replies.