• Resolved PressingWord

    (@pressingword)


    I got the error “The following themes are installed but incomplete.” “Stylesheet is missing.”

    I got that error by trying to install a child theme. I opened a new folder called “twentyseventeen-child” in the /themes (local) folder with 2 files:
    funtions.php
    styles.css

    Here is the code of functions.php:
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    ?>

    Here is the code of the styles.css:
    /*
    Theme Name: Twenty Seventeen Child
    Theme URI: https://www.ads-software.com/themes/twentyseventeen/
    Description: Twenty Seventeen Child Theme
    Author: John Doe
    Author URI: https://example.com
    Template: twentyseventeen
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twenty-fifteen-child
    */
    h1 {
    color: orange;
    }

    Using windows 7, MAMP.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“The following themes are installed but incomplete.”’ is closed to new replies.