Child theme not making any progress
-
Hello guys,
Okay, i’ll make this quick. I have a my own custom made theme called “destinymaker”. And now I made a child theme for it and named it “destinymaker-child”.
Now, I have to be able to edit my website’s style right? For example, I wanna change it’s background to black, and so I’ll use:
body {background: #000;}
but it doesn’t change. I’ve search around, and all of their problems have been resolved. Am I making any mistakes. Please enlighten me. Thanks.
This is my child theme’s style.css
/* Theme Name: destinymaker-child Theme URI: https://www.ads-software.com/ Description: Child Theme for destinymaker Author: Destiny Maker Author URI: https://mywebsite.com/ Template: destinymaker-child Version: 0.1 */ body{background:#000;}
and this is its functions.php
<?php add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } ?>
P.S. do I need to write something similar to my parent’s stylesheet like the one on the child’s? /* (e.g. Theme Name: destinymaker) and so on.
Edit:
this is their locations:
parent : wp-content/themes/destinymaker/style.css
child : wp-content/themes/destinymaker-child/style.css
- The topic ‘Child theme not making any progress’ is closed to new replies.