• Hi there,

    I am trying to create a child theme for the theme Penscratch, but I am having some problems.

    First: I created my directory in wp-content/theme and added inside my two required files:

    • style.css
    • functions.php

    However, when I access my wordpress dashboard it tells me that the parent theme is missing. Here is the code I used:

    Style.css
    Theme Name: Penscratch child
    Description: Penscratch Child Theme
    Author: The Sofa Chronicle
    Author URI: https://www.thesofachronicle.com
    Template: penscratch
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: penscratch.1.0
    */

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

    }

    I would like to specify that I set up my wordpress on a local server via WAMP

    Second: I am not sure about the code inside my functions.php sheet regarding the fact that I have more than one css sheet in my parent theme.

    Thank you for your help.

    Teddy

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Penscratch Child them’ is closed to new replies.