vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   Spice Up Your vBulletin Forum with Google CSS3 Web Fonts (https://vborg.vbsupport.ru/showthread.php?t=297360)

XiTCLUB 04-17-2013 10:00 PM

Spice Up Your vBulletin Forum with Google CSS3 Web Fonts
 
Spice Up Your vBulletin Forum with Google CSS3 Web Fonts

In This Article i will show you, how you can make your forum more attractive and beautiful by changing the default font style of your forum. I am going to use Google web fonts as CSS3 fonts and tell you how you can use Google web fonts in your forum

1: Goto Google Web Fonts Directory Google Fonts

Now Chose the font style you like, you will see small buttons in bottom right of each font style. See screenshot for reference. Click on small "Quick use" Button, this will now display available options for how to using that font style

http://www.xitclub.com/attachments/w...ts-capture.jpg

Scroll Down a bit and you see following screen. As you can see you have 3 options for using font style. I am using 1st method which is standard method.

http://www.xitclub.com/attachments/w...ts-capture.png

2: Adding Google fonts stylesheet to your forum template

a) Goto Admincp > Styles & Templates > Style Manager > Select Your template > Edit > headinclude
b) Copy <link href..... Code from Google and paste at the bottom

3: Using Font Family

Now edit you "additional.css" template

For all Headings


Code:

h1,h2,h3,h4,h5,h6 {  font-family: 'Roboto Condensed', sans-serif; //(or your font family you chose on google) }
For All List Elements

Code:

ul li, ol li {  font-family: 'Roboto Condensed', sans-serif; }
For All Paragraphs

Code:

p {  font-family: 'Roboto Condensed', sans-serif; }
For All Links

Code:

a, a:hover, a:visited {    font-family: 'Roboto Condensed', sans-serif; }

Princeton 04-19-2013 10:26 AM

great article ... many will find this useful

joeychgo 04-23-2013 01:03 PM

Very good! Thank you!

wacnstac 04-23-2013 01:24 PM

Got an example link?

XiTCLUB 04-24-2013 05:51 PM

Quote:

Originally Posted by wacnstac (Post 2418068)
Got an example link?

http://www.xitclub.com/

joeychgo 05-14-2013 04:11 PM

Nice, thank you for this

abdobasha2004 05-25-2013 10:10 PM

Google fonts are awesome, but there are few that support Arabic language !

XiTCLUB 07-27-2013 09:27 PM

Quote:

Originally Posted by abdobasha2004 (Post 2424226)
Google fonts are awesome, but there are few that support Arabic language !

Yup! they are adding new one's time by time. may be they add more arabic fonts soon

SBlueman 08-23-2013 05:54 AM

Can you combine fonts? A different one for headers and paragraphs?

Bubble #5 09-01-2013 01:24 AM

Great article. Very helpful. THANKS!:)

--------------- Added [DATE]1378059024[/DATE] at [TIME]1378059024[/TIME] ---------------

4.2.1

Is there a way to just use these fonts for posting purposes? :confused:

It's messing up the post bit area (where members stats are) and would like to either exclude that area OR just make posts with the new font.

XiTCLUB 09-08-2013 11:48 AM

Quote:

Originally Posted by Bubble #5 (Post 2442244)
Great article. Very helpful. THANKS!:)

--------------- Added [DATE]1378059024[/DATE] at [TIME]1378059024[/TIME] ---------------

4.2.1

Is there a way to just use these fonts for posting purposes? :confused:

It's messing up the post bit area (where members stats are) and would like to either exclude that area OR just make posts with the new font.

its all about CSS, you can control via CSS all the font on your forum

--------------- Added [DATE]1378644547[/DATE] at [TIME]1378644547[/TIME] ---------------

Quote:

Originally Posted by SBlueman (Post 2440472)
Can you combine fonts? A different one for headers and paragraphs?

yes u can use different font-family for h1,h2,h3... and for <p> tags

Bubble #5 09-08-2013 05:25 PM

Quote:

Originally Posted by XiTCLUB (Post 2444110)
its all about CSS, you can control via CSS all the font on your forum

Ok well that tells us it's possible, but not the CSS code that we need to use.

Anyone know? :confused:

Spangle 09-15-2013 08:01 PM

Quote:

Originally Posted by Bubble #5 (Post 2444194)
Ok well that tells us it's possible, but not the CSS code that we need to use.

Anyone know? :confused:

additional.css overrides any other css.

The easiest way to find out what the css for a particular element is, is to use "inspect element" in Firefox, ( right click on the element, brings up a menu)

then post that css in additional.css with the command line, click on save and reload

As you are only editing additional.css it should be fairly easy to see if you get the desired effect.

If you need more help google css elements and you should get enough info to keep you going.

Cem01 08-24-2017 11:36 AM

This article is so useful. Google fonts work great on my web site. Thank you!


All times are GMT. The time now is 11:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01682 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete