I’m having a similar issue. I created the font file using font squirrel, and I’ve updated my child theme with the following:
style.css
@font-face {
font-family: 'hand_of_seanregular';
src: url('handofsean-webfont.woff2') format('woff2'),
url('handofsean-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimbold_oblique';
src: url('gt-walsheim-bold-oblique-webfont.woff2') format('woff2'),
url('gt-walsheim-bold-oblique-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimbold';
src: url('gt-walsheim-bold-webfont.woff2') format('woff2'),
url('gt-walsheim-bold-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimmedium_oblique';
src: url('gt-walsheim-medium-oblique-webfont.woff2') format('woff2'),
url('gt-walsheim-medium-oblique-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimmedium';
src: url('gt-walsheim-medium-webfont.woff2') format('woff2'),
url('gt-walsheim-medium-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimregular_oblique';
src: url('gt-walsheim-regular-oblique-webfont.woff2') format('woff2'),
url('gt-walsheim-regular-oblique-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gt_walsheimregular';
src: url('gt-walsheim-regular-webfont.woff2') format('woff2'),
url('gt-walsheim-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
and I’ve updated my funcitons php with this
function ocean_add_custom_fonts() {
return array( 'hand_of_seanregular', 'gt_walsheimbold_oblique', 'gt_walsheimbold', 'gt_walsheimmedium_oblique', 'gt_walsheimmedium', 'gt_walsheimregular_oblique', 'gt_walsheimregular' );
I can see each of the fonts in the dropdown menu, but it doesn’t actually change the font to the one I’ve uploaded.