How to use Google fonts?

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
rockart
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sun Mar 01, 2009 3:26 pm
Location: Australia

How to use Google fonts?

Post by rockart » Fri Sep 23, 2016 3:20 am

Hi,
Using rocket template Ximenia.

I want you use Google fonts.
Have followed a couple of how to sites/videos (pertaining to other templates) but under Template manager > Ximenia template I cannot find access to the file I need to edit.

I am happy to do this via FTP if I know which file to edit. I will rem out whatever is there if it seems I am replacing something else ( in case I need to restore it).

ALSO >The Google instructions say to put the "line of code" in the head. Fine if html, but IF the code needs to go in a php file (has no head) where would I put it?? :)

Help is appreciated :)

Joomla 2.5.9
Last edited by toivo on Fri Sep 23, 2016 5:55 am, edited 1 time in total.
Reason: mod note: changed subject from all CAPS to normal case - please read the forum rules

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 25005
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: How to use Google fonts?

Post by pe7er » Fri Sep 23, 2016 7:05 am

rockart wrote:Joomla 2.5.9
Joomla 2.5.9 is very outdated and insecure.
Backup your website (eg using Akeeba backup) and update to the latest version in the 2.5 series: 2.5.28
Do not forget to install a 2.5.28 security fix

With Google fonts you have to do 3 things:
1. Find the font you want at https://fonts.google.com/

2. In your template's index.php add a link in the <head> to your selected font e.g.

Code: Select all

<head>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
3. Specify the font in the CSS of your template with the font-family declaration:

Code: Select all

font-family: 'Open Sans', sans-serif;
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

rockart
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Sun Mar 01, 2009 3:26 pm
Location: Australia

Re: How to use Google fonts?

Post by rockart » Sat Oct 08, 2016 6:17 am

Thank you so much for the answer!

May I address the Joomla version issue you mentioned and come back to the Joomla Fonts later please?

............

I want to update Joomla.
To do so I need to back up Joomla in case doing the Joomla update breaks something, old extension/plugins…

WHAT I DID
I backed up Joomla ( 2.5.9 ) with Akeeba backup that was already installed. (Akeeba Backup Core 4.1.2 (2015-02-03) )

My Akeeba Backup version is out of date
................................


Do I need to

1 update Akeeba using - not the latest version but an Akeeba update for the older version of Joomla?

https://www.akeebabackup.com/documentat ... pdate.html

2 Then backup Joomla

3 Then update Joomla (to latest version)

4 then update Akeeba (to latest version)

5 Then backup Joomla (again) with latest version of Akeeba..?

Phew!

Or can it be simpler than this?

Asking Akeeba even a basic question means having to subscribe (pay for the Professional version).


[ Another approach - Can I backup my old version of Joomla with the latest version of Akeeba?

It doesn’t look like it - https://www.akeebabackup.com/compatibility.html
but I am confused]

Help is appreciated. :)


Locked

Return to “General Questions/New to Joomla! 2.5”