[Resolved] Custom font called but not loaded on Posts page Primary Nav

Home Forums Support [Resolved] Custom font called but not loaded on Posts page Primary Nav

Home Forums Support Custom font called but not loaded on Posts page Primary Nav

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #622490
    Tom
    Lead Developer
    Lead Developer

    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?

    #622541
    Alo

    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!

    #623010
    Tom
    Lead Developer
    Lead Developer

    Glad we could help! πŸ™‚

    #798101
    Aaron Harms

    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.

    #798190
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.