Trouble with Child Theme
-
Hi,
I followed the instructions on this page to create a child theme for my blog.
I created the following files, and placed them in the ultra-framework-child directory:
style.css
/* Theme Name: Ultra Framework Child Theme URI: https://kennethrjones.com Description: Ultra Framework Child Theme Author: Kenneth R. Jones Author URI: https://kennethrjones.com Template: ultra-framework Version: 0.0.1 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: minimalized Text Domain: ultra-framework-child */ em { color: #000000; }
functions.php
<?php function my_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 ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>
I activate the theme, but every time I load a page I get the following error message:
I’m not sure what I did incorrectly.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Trouble with Child Theme’ is closed to new replies.