I cannot get child theme to work
-
I am a newbie.
This is the style.css I put in cPanel.
/*
Theme Name: Storefront Child
Theme URI: https://dailypaperflowers.com/storefront-child/
Description: Storefront Child Theme
Author: Viria
Author URI: https://dailypaperflowers.com
Template: storefront
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: storefront-child
*/And functions.php
<?php
/**
* Loads the StoreFront parent theme stylesheet.
*/function sf_child_theme_enqueue_styles() {
wp_enqueue_style( ‘storefront-child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘storefront-style’ ) );
}
add_action( ‘wp_enqueue_scripts’, ‘sf_child_theme_enqueue_styles’ );/**
* Note: DO NOT! alter or remove the code above this text and only add your custom PHP functions below this text.
*/I don’t have the child theme activated now.
What do I do to make it work? It doesn’t look like parent theme. What did I do wrong?
Thank you so much.
- The topic ‘I cannot get child theme to work’ is closed to new replies.