Skip to Content Skip to Menu

Change font of Funlite template

  • wolfsauge
  • wolfsauge
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 2
9 years 7 months ago #261814 by wolfsauge
Change font of Funlite template was created by wolfsauge
Hi,
I remember having asked this before but cannot find my posting. Since it is some time ago there may be a solution meanwhile. I love the funlite template - but I do not like the Google fonts and would like to replace them with simple Arial. This however seems to be a big thing, I do not know how to do it myself, asked in the forum without getting a reply, then hired a freelancer. He succeeded modifying the code so that arial was used and I was very happy with his solution. Unfortunately this created security issues and the site was hacked a couple of times, so I went back to the unloved original google fonts.
So here I am back with the same old question: does anybody know how to replace the fonts?
Thanks for reading this. And even more thanks if you had any idea how to fix my problem.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261875 by krileon
Replied by krileon on topic Change font of Funlite template
You maybe able to just edit the index.php and set the Google font parameter to empty string or null and it should fallback to arial. Try the below change.

IN: templates/funlite/index.php
ON: Line 36
FROM:
Code:
$googlefont = $this->params->get("googlefont", "");
TO:
Code:
$googlefont = null;

As there's already a check to only load Google font if it exists that should prevent it from loading and cause the inline CSS to fallback to its next available font-family (which is Arial).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • wolfsauge
  • wolfsauge
  • OFFLINE
  • Posts: 34
  • Thanks: 0
  • Karma: 2
9 years 6 months ago #262223 by wolfsauge
Replied by wolfsauge on topic Change font of Funlite template
Hi Krileon,
Thank you for your advice.
I am a little bit confused now since it worked on one site but not on my seceond one. I just pourchased the latest version of the template and try again as soon as I will have downloaded it. Perhaps there is something with the older version.
Best wishes
Dirk

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum