Free and Premium WordPress Plugins & Themes Forums WordPress Themes Booklium Problem with fonts
- This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by Andre Flores.
- AuthorPosts
- September 14, 2021 at 10:35 pm #1183134Mariusz JurczewskiParticipant
Hello,
I am trying to change the fonts to custom ones in few places. I would like my titles and some extra places to have custom font.
I`ve written some quick CSS:.entry-title { font-family: "Berkshire Swash"!important; font-weight: normal!important; color: #3d2414; } .mphb-book-button, .mphb-view-details-button { font-family: "Berkshire Swash"!important; font-weight: normal!important; color: #3d2414; }
And it works, but not everywhere.
Here, its a custom page i made for testing purposes: https://kamienica.bialystok.pl/testowe-rozwiazania/
At this page fonts work well, no issues.But for example on this room listing page it is not working: https://kamienica.bialystok.pl/pokoje/
As well as on the single room page: https://kamienica.bialystok.pl/pokoj/barok-apartament-specjal/
I have no idea what is overwriting styles here, please let me know.
All the best,
September 15, 2021 at 12:45 am #1185438Andre FloresModeratorHello Mariusz,
I have checked both example pages and the font is change there: https://prnt.sc/1s9xnw0. Let me know if you have managed to resolve the issue.
Regards,
AndreSeptember 20, 2021 at 3:02 pm #1185478Mariusz JurczewskiParticipantDear Andre,
Thanks for the replay. In the screenshot you provided you can see that font is not working correctly, it is not loaded. Please have a look at those two examples:
1. custom page where font is working:
– http://prntscr.com/1sa54jv
– http://prntscr.com/1sa5dtx
– http://prntscr.com/1sa5qbv2. Room listing page where font is not working:
– http://prntscr.com/1sa5f2h
– http://prntscr.com/1sa5lskYes, i have found a solution to this, but i don’t understand why it is working sometimes and others not.
Solution i found is installing a plugin that can add extra stuff to headers / footers and adding this code to header:
<link rel=”preconnect” href=”https://fonts.googleapis.com”>
<link rel=”preconnect” href=”https://fonts.gstatic.com” crossorigin>
<link href=”https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap” rel=”stylesheet”>September 21, 2021 at 4:37 am #1188730Andre FloresModeratorHello Mariusz,
This is indeed strange as the font seems to be applied in both cases, however, it looks like totally different fonts at: https://kamienica.bialystok.pl/pokoje/ and at: https://kamienica.bialystok.pl/testowe-rozwiazania/.
Check your custom CSS code as well as inline styles directly on the page in order to make sure there is are no other fonts that affect the h2 titles.Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.