basic child theme functionality is not working
-
I would like to make a child theme but it keeps breaking. So I dumbed it down to two files, style.css and functions.php. The files are shown below. They actually add no functionality at all. Unfortunately, they break the css. The css from the parent style does not show up. These two files are in wp-content/themes/spacious-child/ and the parent theme is in wp-content/themes/spacious/. What am I doing wrong?
style.css
/* Theme Name: Spacious Child Theme URI: https://themegrill.com/themes/spacious Description: Spacious Child Author: Kenneth Vogt Author URI: https://themegrill.com Template: spacious 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, white, dark, two-columns, right-sidebar, left-sidebar, fluid-layout, responsive-layout, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options Text Domain: spacious-child */
functions.php
<?php function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘basic child theme functionality is not working’ is closed to new replies.