- This topic has 12 replies, 3 voices, and was last updated 1 year, 6 months ago by
Elvin.
-
AuthorPosts
-
January 24, 2021 at 4:11 am #1631218
Radek
Hi,
I have followed the guide but I was still unable to make the custom font work.
– I’ve uploaded web fonts into the child theme folder
– Added code into the CSS child theme
– Added PHP via snippet pluginCould you, please, take a look to see if there’s something obvious I’m missing?
I’m attaching files and screenshots.
January 24, 2021 at 7:40 am #1631541David
StaffCustomer SupportHi there,
is it possible to see a page of the site where the fonts are not loading ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 24, 2021 at 5:51 pm #1631974Radek
Hi David,
We have coming soon page so not without login details – I’m attaching them.
I’ve tried to assign the fonts through the Customise interface as titles but the font is not displaying there.
Note: I’ve tried clear caches but it did not help to solve the problem.
January 24, 2021 at 6:25 pm #1631997Elvin
StaffCustomer SupportHi there,
I’ve checked the stylesheet and seems to have issues. Some URLs had missing dots while some properties where wrong.
bold is a
font-weight
property, not font-style.Font styles are normal, italic and oblique.
Font weights values are 100 to 900 with some values associated with ‘bold’, ‘thin’, ‘regular’ etc.
You’ll have to fix these things to make the importation work properly.
A wise man once said:
"Have you cleared your cache?"January 24, 2021 at 6:56 pm #1632035Radek
Thank you, Elvin,
I’ve did the adjustments as you suggested – the font is still not available in the Customise interface…
January 24, 2021 at 8:19 pm #1632093Elvin
StaffCustomer SupportI’ve did the adjustments as you suggested – the font is still not available in the Customise interface…
Ah right, this issue is due to your snippet being set “Only run on site front end”. Set it to “Run snippet everywhere” so it actually runs on the backend.
“Only run on site front end” is used for JS or CSS. PHP snippets should be run on the backend.
Alternatively, since you’re using a child theme. You can just add the snippet to its
functions.php
as specified here: https://docs.generatepress.com/article/adding-php/A wise man once said:
"Have you cleared your cache?"January 24, 2021 at 8:38 pm #1632107Radek
Thank you, now I can see the font in the interface. Unfortunately, choosing the font and saving the settings does not propagate it into the frontend – Ubuntu is still in all titles (cache cleared before trying).
January 24, 2021 at 8:47 pm #1632113Elvin
StaffCustomer SupportYou have this CSS within Appearance > Customize > Additional CSS:
h1, h2, h3, h4, h5, h6 { font-family: "Ubuntu", sans-serif !important; }
This prevents any styling from the customizer to apply to your heading.
A wise man once said:
"Have you cleared your cache?"January 24, 2021 at 8:51 pm #1632117Radek
🤦 Thanks!
January 24, 2021 at 9:01 pm #1632129Elvin
StaffCustomer SupportIf the font changes but it doesn’t seem to match how “Greycliff” looks, that usually means you still have to fix something within the @font-face{…}.
No problem. 🙂
A wise man once said:
"Have you cleared your cache?"January 25, 2021 at 2:26 am #1632403Radek
So this is strange. When I put back
h1, h2, h3, h4, h5, h6 { font-family: "Greycliff", sans-serif !important; }
to custom CSS the right font is displayed…any idea why?
January 25, 2021 at 2:28 am #1632407Radek
Oh, ok I know. Custom 3rd party blocks rewrote the settings from Generate press.
Sorted, thank you!
January 25, 2021 at 7:12 pm #1633535Elvin
StaffCustomer SupportNice one! Glad you got it sorted. 🙂
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.