Making a child theme for “Airi”


I had chosen the Airi theme for my WordPress website. I planned to make some customizations and decided to use a child theme.
I had studied the WordPress documentation page
I had made a folder for the child theme, put new style.css and functions.php files there.
My functions.php was like this:

add_action('wp_enqueue_scripts', 'my_site_theme_enqueue_styles');
function my_site_theme_enqueue_styles()
    $theme = wp_get_theme();
    wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
    wp_enqueue_style( 'my-site-style', get_stylesheet_uri(),
        array( $parenthandle,'airi-font-awesome' ),

Then I had activated the child theme. But the site representation wasn’t the same, as it was in the parent theme.
I had compared the output HTML of the child theme with the parent one and had found a ‘wp-custom-css’ block, that had been omitted in the child theme.

Sergey Beloglazov 1 year 2021-11-26T12:47:59-05:00 0 Answers 0 views 0

Leave an answer