The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Google Fonts

View previous topic View next topic Go down

Solved Google Fonts

Post by Kadebostany on October 25th 2015, 10:02 pm

Halló,
Are there any way to use Google Fonts in our forums?

I just wanted to know.

Takk takk,
- KAD


Last edited by Kadebostany on October 26th 2015, 7:02 pm; edited 1 time in total

Kadebostany
New Member

Posts : 14
Reputation : 1
Language : Turkish

http://musiverse.getforum.net/

Back to top Go down

Solved Re: Google Fonts

Post by Ange Tuteur on October 25th 2015, 10:16 pm

Hello @Kadebostany,

Of course. Smile

You can install the provided code via the templates ( standard method ) :
Display > Templates > General > overall_header

or via JavaScript :
Modules > JS codes management > New script

The @import rule doesn't work, at least not in the AP stylesheet.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Google Fonts

Post by Kadebostany on October 26th 2015, 12:13 am

This is the standard code, but I don't know where to add them in overall_header:

Code:
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic&subset=latin-ext,cyrillic-ext' rel='stylesheet' type='text/css'>

I tried the JS but it didn't work.

Kadebostany
New Member

Posts : 14
Reputation : 1
Language : Turkish

http://musiverse.getforum.net/

Back to top Go down

Solved Re: Google Fonts

Post by Ange Tuteur on October 26th 2015, 9:13 am

Add it before the closing </head> tag. That should be a good spot.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Google Fonts

Post by Kadebostany on October 26th 2015, 3:05 pm

I did what you said and the closing </head> tag became red.



...and, nothing happened on forum. Did i miss something?

Kadebostany
New Member

Posts : 14
Reputation : 1
Language : Turkish

http://musiverse.getforum.net/

Back to top Go down

Solved Re: Google Fonts

Post by Ange Tuteur on October 26th 2015, 3:44 pm

No, don't worry about that too much. In XHTML you need to add a / at the end of tags with no closing tags. Example :
Code:
<link rel="stylesheet" href="/..." />

Did you use the font you installed in the stylesheet ? Like this :
Code:
body {
  font-family:"Open Sans", Verdana, Sans-serif;
}

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Google Fonts

Post by Kadebostany on October 26th 2015, 7:02 pm

It worked. Thank you!

Kadebostany
New Member

Posts : 14
Reputation : 1
Language : Turkish

http://musiverse.getforum.net/

Back to top Go down

Solved Re: Google Fonts

Post by Ange Tuteur on October 26th 2015, 7:07 pm

You're welcome ^^

Topic archived

If you have anymore questions feel free to open a new topic. Have a good day. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum