Answers for "18. which is the necessary file if you need to create a child theme? a. single.php b. index.html c. style.css d. page.php"

PHP
0

create child theme in wordpress

add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
    wp_enqueue_style( 'child-style', get_stylesheet_uri(),
        array( 'parenthandle' ), 
        wp_get_theme()->get('Version') // this only works if you have Version in the style header
    );
}
Posted by: Guest on January-23-2021

Code answers related to "18. which is the necessary file if you need to create a child theme? a. single.php b. index.html c. style.css d. page.php"

Browse Popular Code Answers by Language