i made child theme of my quark theme.
One Problem is, that the font size of the header typo is not correct.. it is smaller.
Any idea?
here are the code of the style.css:
- Code: Select all
/*
Theme Name: Quark
Template: Quark
Version: 1.2.7
Text Domain: Quark-child
*/
/* Our CSS code we insert below */
the code of the functions.php is:
- Code: Select all
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/font.awesome.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/ie8.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/ie9.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/mobile.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/normalize.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/override.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/photoswipe.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/small.desktop.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/small.tablet.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/tablet.css' );
// wp_enqueue_style( $parent_style, get_template_directory_uri() . '/editor.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>