How to install Child Theme for Dazzling

Hi!
First, thank you for a wonderful theme!
I have tried to install your child theme sample but am obviously not doing it right. Here is what I did:
-I uploaded your sample dazzling-child to the themes
-I added my extra code to the functions.php and style.css files in the child files
-I activated the child theme

From here, I got a blank screen both on back and front end.
I removed the dazzling-child folder on the server and reactivated the main theme. Thankfully, it worked.
I would really want to succeed with this :slight_smile: Could you please advise?
If possible, please guide me in also creating an extras.php file in the child theme.
Thank you!

You are getting fatal errors but your WordPress is configured so that these errors are not displayed in front page for security reasons. However, all error messages can be found in your hosting log files and that’s where you should start your debugging.

There must be a bug in code that you added inside Child Theme functions.php file. This is definitely not related to CSS.

Entire extras.php file can’t be overwritten entirely and you should work with individual functions. Here is some more information about how this process works.

Thank you for the quick reply.
The logs confirmed what I thought- I had already added the code to the parent functions.php and when I even added it in the child theme it resulted in fatal error. All I needed to do is remove it from the parent theme before activating the child theme. It works now, I’m so grateful!

But I still don’t know what to do about the footer, so I don’t need to redo after each theme update. I simply want to remove the WordPress mention. Here is what I do manually now:

In the extras.php file (of the parent theme obviously) I replace this code:

if ( ! function_exists( 'dazzling_footer_info' ) ) :
/**
 * function to show the footer info, copyright information
 */
function dazzling_footer_info() {
  global $dazzling_footer_info;
  printf( __( 'Theme by %1$s Powered by %2$s', 'dazzling' ) , '<a href="https://colorlib.com/wp/" target="_blank">Colorlib</a>', '<a href="http://wordpress.org/" target="_blank">WordPress</a>');
}
endif;

with this code I found somewhere:

if ( ! function_exists( 'dazzling_footer_info' ) ) :
/**
 * function to show the footer info, copyright information
 */
function dazzling_footer_info() {
  global $dazzling_footer_info;
  printf( __( 'Theme by %1$s', 'dazzling' ) , '<a href="https://colorlib.com/wp/" target="_blank">Colorlib</a>');
}
endif;

Is there any way to do this in the child theme? Thank you!