Salient theme Modify heading 1 font
-
Greetings,
Hoping someone can help me figure out what’s wrong with my child css script (I’m assuming this is the problem). I want to add a font (Good dog) to heading 1, which is not part of the standard theme set up.
I created a child theme which is activated (Theme supplier created a template child css and php which I added to).
Directly within the child folder I have installed the 4 font types (as instructed by Fontspring supplier of font), my style.css and function.php. Fontspring has helped me get to this stage (with coding for font), but they can’t figure out why it’s not working.
Any help would be greatly appreciated
Below is a copy of my css
/*
Theme Name: Salient Child Theme
Theme URI: http: //justoutsidetheboxcartoon.com/
Description: This is a custom child theme for Salient
Author: Martina
Author URI: http: //justoutsidetheboxcartoon.com/
Template: salient
Version: 0.1
*/@import url(“../salient/style.css”);
@font-face {
font-family: ‘gooddogregular’;
src: url(‘gooddog-webfont.eot’);
src: url(‘gooddog-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘gooddog-webfont.woff2’) format(‘woff2’),
url(‘gooddog-webfont.woff’) format(‘woff’),
url(‘gooddog-webfont.ttf’) format(‘truetype’),
url(‘gooddog-webfont.svg#gooddogregular’) format(‘svg’);
font-weight: normal;
font-style: normal;}
h1 {
font-family: ‘gooddogregular’;
font-size: 24px;
}And if it helps, here is my functions.php which I created enqueue scripts copied from WP Codex site for setting up a child theme
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}?>
- The topic ‘Salient theme Modify heading 1 font’ is closed to new replies.