Google Fonts question

Posted in: Newspaper
Post count: 74

Hello All,
I uploaded my google fonts into /fonts/ in the root of the wordpress install.
I added the css generated by this tool in custom css.

May i know how can i tell the theme now to call those fonts locally instead of google server ? which file shall i modify ?

thx

/* palanquin-regular – latin */
@font-face {
font-family: ‘Palanquin’;
font-style: normal;
font-weight: 400;
src: url(‘../fonts/palanquin-v2-latin-regular.eot’); /* IE9 Compat Modes */
src: local(‘Palanquin Regular’), local(‘Palanquin-Regular’),
url(‘../fonts/palanquin-v2-latin-regular.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */
url(‘../fonts/palanquin-v2-latin-regular.woff2’) format(‘woff2’), /* Super Modern Browsers */
url(‘../fonts/palanquin-v2-latin-regular.woff’) format(‘woff’), /* Modern Browsers */
url(‘../fonts/palanquin-v2-latin-regular.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘../fonts/palanquin-v2-latin-regular.svg#Palanquin’) format(‘svg’); /* Legacy iOS */
}

Post count: 20688

Hi,

You could upload your custom fonts in the theme panel and give them a name
https://www.screencast.com/t/2707XvNzyT
Then these fonts will be available for selection in the font sections and you can use them where you wish. More information here
https://forum.tagdiv.com/font-customization/

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.