Font size in Child Theme not correct
Multipurpose WordPress Theme Forum Support
- GK User
- Fri Oct 13, 2017 9:53 pm
Hey,
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:
the code of the functions.php is:
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' );
?>
-
- Expert Boarder
- GK User
- Fri Oct 13, 2017 10:46 pm
Sorry! Correct code for 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' );
?>
-
- Expert Boarder
- Joshua M
- Mon Oct 16, 2017 8:05 am
Hi,
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
-
- Moderator
- Joshua M
- Wed Oct 18, 2017 8:53 am
The order of your css styles are not correct. Please add this line first:
- Code: Select all
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/normalize.css' );
-
- Moderator
- GK User
- Wed Oct 18, 2017 9:07 am
I insert the code in the first line, but the font size ist still smaller...
-
- Expert Boarder
5 posts
• Page 1 of 1