Site logo

Archived topic

Custom font called but not loaded on Posts page Primary Nav

19 replies · Started by Alo on July 3, 2018

Viewing posts 16–20 of 20

Here's the CSS added by Elementor which seems to be working:

@font-face {
	font-family: 'Etelka Headings';
	font-style: normal;
	font-weight: normal;
	src: url('URL TO FILE HERE') format('truetype');
}

Can you try using that in your child theme?

YES! That worked like a charm! Thank you A LOT! Such a simple change though, wish it was as obvious as well. Anyway, still, thanks a lot, Tom and David!

Glad we could help! :)

I just followed the documentation found here:

https://docs.generatepress.com/article/adding-local-fonts/

Following those directions didn't work for me because I chose to put my @font-face declaration in the Customize > "Additional CSS" field. After I moved the CSS from that field into my child theme's CSS file, it worked! :)

You may want to make a change to the above documentation, stating that it will not work in the "Additional CSS" field.

As long as you use the full URL to the font files, it will work anywhere.

However, if you use the relative URL, then it will need to go in the child theme as you found out :)

This archived topic is closed to new replies.