Site logo

Archived topic

Google Custom font showing only on Homepage

3 replies · Started by Matthias on August 17, 2021

Viewing posts 1–4 of 4

You can see that my font Biryani is applied on my Homepage
Home

if i go an another site my font is not showing in the header menu
other site

my code that i used for it:
function.php

add_filter( 'generate_typography_default_fonts', function( $fonts ) {
    $fonts[] = 'Biryani';

    return $fonts;
} );

style.css

/* biryani-200 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 200;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-200.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-300 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 300;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-300.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-regular - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 400;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-regular.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-600 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 600;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-600.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-700 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 700;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-700.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-800 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 800;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-800.svg#Biryani') format('svg'); /* Legacy iOS */
}
/* biryani-900 - latin */
@font-face {
  font-family: 'Biryani';
  font-style: normal;
  font-weight: 900;
  src: url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.woff') format('woff'), /* Modern Browsers */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('http://placely.de/wp-content/uploads/2021/08/biryani-v6-latin-900.svg#Biryani') format('svg'); /* Legacy iOS */
}

why didn't work it?

Hi Matthias,

Can you link us to your site, so we can have a look :)

The CSS and PHP look good to me.

But it seems other pages are not loading the font.

Can you try clearing cache and disabling all plugins except GP Premium to test?

This archived topic is closed to new replies.