• Resolved sunnylife

    (@sunnylife)


    Hi,

    I have created “style.css” & “functions.php” in vitue_child folder. Then I uploaded this folder to “/wp-content/themes/virtue/”. Still I am not showing my child theme in Appearance > Themes.

    Please help me. How I will find my child theme and how I will activate it.

    I wrote below codes in style.css file:
    /*
    Theme Name: Virtue Child
    Theme URI: https://kadencethemes.com/virtue/
    Description: Child Theme for virtue
    Author: Kadence Themes
    Author URI: https://kadencethemes.com/
    Template: virtue
    Version: 2.5.6
    Tags: responsive-layout, two-columns, one-column, custom-colors, custom-header, custom-menu, featured-images, translation-ready, theme-options, photoblogging
    Text Domain: virtue-child
    */

    /* =Theme customization starts here
    ————————————————————– */

    I wrote below codes in functions.php:
    <?php

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }

    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    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 )
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘child theme not showing’ is closed to new replies.