Changing font in child theme
-
I tried to change the entire font of my website to a Grilli font by editing the style sheet in my child theme. Can’t get it to work.
The CSS and functions.php are pasted below. Can you offer any suggestions?
/*
Theme Name: Bridge Child
Theme URI: https://demo.qodeinteractive.com/bridge/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: https://www.qodethemes.com/
Version: 1.0.0
Template: bridge
*/
@import url(“../bridge/style.css”);@font-face {
font-family: “GT Walsheim Light”;
src: url(“fonts/GT-Walsheim-Light.eot”);
/* IE9 Compat Modes */
src: url(“fonts/GT-Walsheim-Light.woff”) format(“woff”), url(“fonts/GT-Walsheim-Light.ttf”) format(“truetype”);
/* Safari, Android, iOS */
font-weight: normal;
font-style: normal; }
@font-face {
font-family: “GT Walsheim Medium”;
src: url(“fonts/GT-Walsheim-Medium.eot”);
/* IE9 Compat Modes */
src: url(“fonts/GT-Walsheim-Medium.woff”) format(“woff”), url(“fonts/GT-Walsheim-Medium.ttf”) format(“truetype”);
/* Safari, Android, iOS */
font-weight: normal;
font-style: normal; }body, input, textarea {
font: 15px “GT Walsheim Light”
}h1, h2, h3, h4 {
font: “GT Walsheim Medium”
}FUNCTIONS PHP
<?php// enqueue the child theme stylesheet
Function wp_schools_enqueue_scripts() {
wp_register_style( ‘childstyle’, get_stylesheet_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘childstyle’ );
}
add_action( ‘wp_enqueue_scripts’, ‘wp_schools_enqueue_scripts’, 11);
- The topic ‘Changing font in child theme’ is closed to new replies.