File: /home/f/r/e/frenchy/refonte2023/wordpress/wp-content/themes/gimont-child/functions.php
<?php
/**
* Setup gimont Child Theme's textdomain.
*
* Declare textdomain for this child theme.
* Translations can be filed in the /languages/ directory.
*/
function gimont_child_theme_setup() {
load_child_theme_textdomain( 'gimont-child', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'gimont_child_theme_setup' );
add_action( 'wp_enqueue_scripts', 'gimont_enqueue_styles' );
function gimont_enqueue_styles() {
$parenthandle = 'gimont-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
$theme = wp_get_theme();
wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css',
array(), // if the parent theme code has a dependency, copy it to here
$theme->parent()->get('Version')
);
wp_enqueue_style( 'child-style', get_stylesheet_uri(),
array( $parenthandle ),
$theme->get('Version') // this only works if you have Version in the style header
);
}