Creating a child theme in WordPress

Create a new directory with any appropriate name in the themes folder and inside create two new files: functions.php & style.css

style.css
/*
Theme Name:   <Your-Name> Child Theme
Theme URI:    https://jkristoffer.com
Description:  Child theme, based on <Parent> Theme
Author:       Kristoffer
Author URI:   https://jkristoffer.com
Template:     <parent-theme-directory-name>
*/

It’s important to note that the value of Template field should be the folder name of the Parent theme

functions.php
<?php
  # functions.php
  # Inherits parent theme's CSS
  add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );

  function enqueue_parent_styles() {
    wp_enqueue_style( 'parent-style', 
    get_template_directory_uri().'/style.css' );
  }