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 code example
Example 1: how to make folder in child theme in theme editer
@import url("../twentythirteen/style.css");
.site-title {
padding: 30px 0 30px;
}
.site-header .home-link {
min-height: 0px;
}
.navbar {
background-color:
}
.widget {
background-color:
}
.site-footer {
background-color:
}
.site-footer .sidebar-container {
background-color:
}
Example 2: 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')
);
}