Zailana,
Sorry for the trouble you’re having. Just so I understand correctly – the Child Theme you’ve created does not work and any changes you have in it are not being registered? Is there any way you can share your Child Theme with me?
Best,
NimbusThemes
Hello,
Thank you for your answer.
Yes, here is the function.php file :
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
Here is the style.css :
/*
Theme Name: Simple Business Pro Child
Theme URI: http://nimbusthemes.com/wordpress-themes/simple-business/
Description: Simple Business Pro Child Theme
Author: Nimbus Themes
Author URI: http://nimbusthemes.com/
Template: simple-business-pro
Version: 2.0.7
Text Domain: simple-business-pro-child
*/
Thank you for your help !
Hello,
This is probably happening because you’re not including your child theme stylesheet anywhere. Please try this:
?php
function 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 )
);
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
?>
More info here: https://codex.ww.wp.xz.cn/Child_Themes
Thanks for your feedback.
I tried with your code, but nothing happens. The child theme doesn’t work: the changes to the parent topic is not addressed by the child and when I want to change the child theme that doesn’t work either.
Thank you, I know the site. I tried with several code to the functions.php and each time it does not work.
Can you share the URL of your website with me? With the Child Theme enabled?
I can’t let activate the theme child car the users would not otherwise incomplete site/they would see a broken website. Does not exist another way?
Please zip your child theme and send it to [email protected] – I’ll take a look.
Ok, I will send you a mail. Thanks
I am in the same boat as zailana.
I have followed this tutorial: https://codex.ww.wp.xz.cn/Child_Themes and other sources for help. My child theme is not picking up all the css files from the parent theme even after enqueuing them all.
I too will zip up my child theme and send it to you to have a look, if you don’t mind.
Thanks
Sure dwang19 – I’d be happy to help.
Okay I’ve sent the email and attachment again, check your junk/spam folder in case it ended up there, I gave it a subject line of: Child Theme Help.
Much appreciated!