Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
macavity
$ 20.00
heliown
$ 20.00
rosbif
$ 18.68
rosbif
$ 26.40
Aforo, losViajeros
$ 40.00
User Info
Bienvenue Anonyme
Adhésion:
Dernier: macuserau
Nouveau aujourd'hui: 0
Nouveau hier: 0
Tous: 146
Visiteurs en ligne:
Membres: 0
Visiteurs: 31
Bots: 2
Total: 33
Qui est Où:
Visiteurs:Support Forums
Pro News Articles
Downloads
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Downloads
Support Forums
Nedladdningar
Accueil
Support Forums
Pro News Articles
Support Forums
Downloads
Descargas
Downloads
Pro News Articles
Downloads
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Mon Compte
Support Forums
Support Forums
Nedlastninger
Pro News Articles
Support Forums
Pro News Articles
Bots:Baidu > Pro News Articles
Google > Donate
Admin en Ligne:
Pas d'Admin en ligne!
Revenir en haut
Skip to menu
Skip to content
Temperature Font Size in Newer Themes
Temperature Font Size in Newer Themes
Posté le: Thu Apr 19, 2007 9:35 pm
You may have noticed that the font size of the temperature value in the WeatherHarvest block has dropped back to normal text size. Reason is WeatherHarvest uses the now almost deprecated font number system (font-size=8). Problem is that many of the newer themes use px-based CSS font sizing for better control, and don't even bother to set the base font-size value, thus 8 doesn't relate to anything.
Here's the cure. In /modules/WeatherHarvest/d_config.php find around line 1,244:
and change it to:
Also to get the WeatherHarvest S, M, L font sizes back into their approximate original sizes, you will want to also find, around lines 677, 682, 686, these 3 lines:
and bump them up to:
Of course now that the size is px-based, you can set it to any font size you want.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1
Here's the cure. In /modules/WeatherHarvest/d_config.php find around line 1,244:
PHP:
$return_string .= sprintf( "<td align=\"$iconalign\"><font size=\"".$fontsize."\">%s</font>", $tempString );
PHP:
$return_string .= sprintf( "<td align=\"$iconalign\"><span style=\"font-size:".$fontsize."px;font-weight:bold;\">%s</span>", $tempString );
Also to get the WeatherHarvest S, M, L font sizes back into their approximate original sizes, you will want to also find, around lines 677, 682, 686, these 3 lines:
PHP:
$fontsize = "8";
$fontsize = "10";
$fontsize = "12";
PHP:
$fontsize = "16";
$fontsize = "20";
$fontsize = "24";
Of course now that the size is px-based, you can set it to any font size you want.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- Messages: 1119
- Inscrit le: Mar 18, 2006
Vous ne pouvez pas poster de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas voter dans les sondages de ce forum
You cannot attach files in this forum
You can download files in this forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas voter dans les sondages de ce forum
You cannot attach files in this forum
You can download files in this forum
Toutes les heures sont au format GMT











