1. danneel
  2. Sherlock Holmes
  3. Commercial Templates
  4. Wednesday, 29 May 2019
  5.  Subscribe via email
Hi, I am trying to install a custom font needed for YMCA websites called Cachet.

1) I have added the three custom fonts to the fonts folder as .woff files

2) I have added a custom.css file in the j51_sophia/CSS folder that includes the following

h1 {
font-size: 34px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}

@font-face {
font-family: 'Cachet-Book';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Book.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Medium';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Medium.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Bold';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}

body {
font-family: Cachet-Book !important;
}

h1 {
font-family: Cachet-Bold !important;
}

h2 {
font-family: Cachet-Medium !important;
}


I'm needing the h1/h2 and body section to use the Cachet font but it doesn't seem to be showing for me.

Website is http://www.wcfymca.org/39

Thanks in advance
Dan
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try replacing the font-face CSS with the following...

@font-face {
font-family: 'Cachet-Book';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Book.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Medium';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Medium.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Bold';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,
Thanks for the info. I have replaced the above into the custom.css file and selected "Load Custom CSS" as yes, but I don't see the new font on the site. Thanks in advance for the assistance. Getting custom fonts to work is kicking my ass.. :)
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

We have updated your custom CSS and your font appears to be now loading correctly.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,
I just checked the fonts on the site (the body and the h1 and h2 headings) and it seems they aren't using the Cachet fonts. Can you take another look at the body font. thanks
Dan
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Dan

To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

h2, h2 a:link, h2 a:visited {
font-family: Cachet-Medium !important;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Ciaran,
I have added that to my custom.css file located within the CSS folder of the template I'm using. I have attached the CSS I'm using below

Still showing the body font as a default system font versus the Cachet Medium font.

thanks in advance
Dan




h1 {
font-size: 34px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}

@font-face {
font-family: 'Cachet-Book';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Book.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Medium';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Medium.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Cachet-Bold';
src: url('//http://www.wcfymca.org/39/templates/j51_sophia/fonts/Cachet-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}

body {
font-family: Cachet-Book !important;
}

h1 {
font-family: Cachet-Bold !important;
}

h2 {
font-family: Cachet-Medium !important;
}

h2, h2 a:link, h2 a:visited {
font-family: Cachet-Medium !important;
}
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Dan

Checking your site in Firefox, all text appears to be using the Cachet font. Could you possibly be loading a cached version of your site?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok