Good morning…Let’s begin with posting your stylesheet header info and then the code you used to grab the stylesheet(s).
I know you said you’ve done this before, but just to ensure a couple things…
1. the emphasize theme is installed
2. in your child style.css, it does state: Template: emphasize
As a side note…in testing this out on my local test site, I did discover one small issue with the bootstrap css file. The HTML has a font size of 10px which I need to change to 100%
Hi bydlo,
try to create a new style.css for a child theme with the following header.
/*
Theme Name: (Put here the name of your child theme. It will appear in wp-admin)
Theme URI: http://#
Author: YOUR NAME
Author URI: http://#
Description: Emphasize child theme
Template: emphasize
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/copyleft/gpl.html
Text Domain: (put here the text domain of your child theme)
*/
@import url("../emphasize/style.css");
it works for me.
Thanks @schastnyy
One suggestion for the style.css, it’ll be better to enqueue it in a child theme functions.php file like this instead of the inport method:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}