@frejachristiana – You appear to be following the steps outlined here https://developer.wordpress.org/themes/advanced-topics/child-themes/ … I would suggest going back to that page to make certain you have followed each step.
The code above looks fine so I would suggest looking at your child-theme’s style.css file to ensure it is set correctly (particularly the template reference).
~ Cais.
Hi Cais, thank you for the quick reply. The Basic Child style.css looks like this:
/*
* Theme Name: Basic Child
* Theme URI: http://wp-puzzle.com/basic/
* Description: Basic is fully responsive, clean and minimal WordPress theme. It has various options in WordPress Customizer to change look of the theme - primary design color, background and header, page layout (left or right sidebar, full or centered content). Clean valid code, semantic markup, markup by Schema.org, full adaptation to mobile devices. Basic is ready to use with child themes and gives for developers simple design change with custom hooks and action. Translation Ready (English, Russian, Ukrainian, French, German, Polish, Turkish). Fully compatible with WPML, WooCommerce, bbPress.
* Author: WP Puzzle
* Author URI: http://wp-puzzle.com/
* Template: basic
* Version: 1.3.10
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Tags: two-columns, one-column, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, microformats
* Text Domain: basic-child
*/
It’s copy pasted from the parent except for the extra Template line. I believe I have followed every step in that tutorial which is why I am not sure what I am doing wrong!
It’s good to learn how to do this manually but there is a plugin that makes quick work of creating a Child Theme. Until you learn to do it I’d recommend trying once manually then, if that doesn’t work, go ahead and use the plugin in the name of expediency.
This is the one I use…
https://wordpress.org/plugins/child-theme-generator/
Once you’ve created the child theme you can deactivate and remove the plugin if you wish.
Don’t let the warning message scare you. It either works or it doesn’t but I’ve been using it all along and it just worked for me last week.
Howdy,
I’m going to take a quick shot in the dark and guess it is this theme: https://wordpress.org/themes/basic/
I just tried on a local installation and was able to get things to work. Are there any other files besides the functions.php and style.css that you have created?
Thanks @jnashhawkins I will try this if I am not able to learn how to do it myself.
@jcastaneda No other files, just those 2!
@jcastaneda Also yes that is the theme I am using.
That is odd.
Have you tried deactivating all plugins to see if that could work? Not sure why but it is worth a shot.