@font-face uploads not working on mobile
-
I have uploaded four custom fonts to our server and added CSS to the Stylesheet (style.css) on the site. We have also added the below PHP code to the Theme Functions (functions.php).
The header designations have also been added in the Additional CSS panel and we were able to get the font to work on desktop. However, it is not functioning on mobile.
Can anyone help identify what I am doing wrong?
CODE: <strong><em>- STYLESHEET -</em></strong> @font-face { font-family: 'kenyan_coffeebold_italic' !important; src: url('fonts/kenyan_coffee_bd_it-webfont.eot'); src: url('fonts/kenyan_coffee_bd_it-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kenyan_coffee_bd_it-webfont.woff2') format('woff2'), url('fonts/kenyan_coffee_bd_it-webfont.woff') format('woff'), url('fonts/kenyan_coffee_bd_it-webfont.ttf') format('truetype'), url('fonts/kenyan_coffee_bd_it-webfont.svg#kenyan_coffeebold_italic') format('svg'); font-weight: normal; font-style: normal;} @font-face { font-family: 'kenyan_coffeebold' !important; src: url('fonts/kenyan_coffee_bd-webfont.eot'); src: url('fonts/kenyan_coffee_bd-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kenyan_coffee_bd-webfont.woff2') format('woff2'), url('fonts/kenyan_coffee_bd-webfont.woff') format('woff'), url('fonts/kenyan_coffee_bd-webfont.ttf') format('truetype'), url('fonts/kenyan_coffee_bd-webfont.svg#kenyan_coffeebold') format('svg'); font-weight: normal; font-style: normal;} @font-face { font-family: 'kenyan_coffeeitalic' !important; src: url('fonts/kenyan_coffee_rg_it-webfont.eot'); src: url('fonts/kenyan_coffee_rg_it-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kenyan_coffee_rg_it-webfont.woff2') format('woff2'), url('fonts/kenyan_coffee_rg_it-webfont.woff') format('woff'), url('fonts/kenyan_coffee_rg_it-webfont.ttf') format('truetype'), url('fonts/kenyan_coffee_rg_it-webfont.svg#kenyan_coffeeitalic') format('svg'); font-weight: normal; font-style: normal;} @font-face { font-family: 'kenyan_coffeeregular' !important; src: url('fonts/kenyan_coffee_rg-webfont.eot'); src: url('fonts/kenyan_coffee_rg-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kenyan_coffee_rg-webfont.woff2') format('woff2'), url('fonts/kenyan_coffee_rg-webfont.woff') format('woff'), url('fonts/kenyan_coffee_rg-webfont.ttf') format('truetype'), url('fonts/kenyan_coffee_rg-webfont.svg#kenyan_coffeeregular') format('svg'); font-weight: normal; font-style: normal;} <strong><em>- Theme Functions -</em></strong> $system_fonts[ 'kenyan_coffeebold_italic' ] = array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '400', ), ); $system_fonts[ 'kenyan_coffeebold' ] = array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '400', ), ); $system_fonts[ 'kenyan_coffeeitalic' ] = array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '400', ), ); $system_fonts[ 'kenyan_coffeeregular' ] = array( 'fallback' => 'Helvetica, Arial, sans-serif', 'weights' => array( '400', ), ); return $system_fonts; } <strong><em>- Additional CSS -</em></strong> h1,h2,h3,h4,h5,h6 { font-family: 'KenyanCoffeeRg-Regular', Open Sans, Arial, sans-serif !important; letter-spacing: .03em;}
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘@font-face uploads not working on mobile’ is closed to new replies.