Font size - Block “current"
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Font size - Block “current"
Version used 24.6
I have found that some templates use a larger font size for the sensor values than the default.
In the block settings I have not been able to find a way to achieve this.
What do I have to do to increase the font size of the sensor values?
Thanks in advance.
I have found that some templates use a larger font size for the sensor values than the default.
In the block settings I have not been able to find a way to achieve this.
What do I have to do to increase the font size of the sensor values?
Thanks in advance.
- Attachments
-
- Current_size.png (110.39 KiB) Viewed 556 times
- didoujm
- Observer
- Posts: 17
- Joined: Sun Aug 20, 2017 1:47 pm
- Location: Mirepoix
- Station model: Davis Vantage Pro2
- Software: WEATHER DISPLAY
- Contact:
Re: Font size - Block “current"
Bonjour
Il faut aller à la ligne 365:
<span class="mticon-temp conditionsIcon tooltip" alt='' title="<?php echo lang('temperature','c')?>"></span><br><?php if($showLabels){?><span class='currentLabel'><?php echo lang('temperature','c')?></span><br><?php } ?><span id="currentTValue" style='font-size: 1.3em'></span><br>°<?php echo $displayTempUnits?>.
je vous joins un exemple ci-dessus.
Il faut ajouter style='font-size:1.3em' pour agrandir la valeur température.
Amicalement didier
Il faut aller à la ligne 365:
<span class="mticon-temp conditionsIcon tooltip" alt='' title="<?php echo lang('temperature','c')?>"></span><br><?php if($showLabels){?><span class='currentLabel'><?php echo lang('temperature','c')?></span><br><?php } ?><span id="currentTValue" style='font-size: 1.3em'></span><br>°<?php echo $displayTempUnits?>.
je vous joins un exemple ci-dessus.
Il faut ajouter style='font-size:1.3em' pour agrandir la valeur température.
Amicalement didier
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
Thank you very much for your help.
In my version of the block it is line 345. In order not to rush and ruin my template, I will slowly review the changes to be made.
Merci beaucoup.
In my version of the block it is line 345. In order not to rush and ruin my template, I will slowly review the changes to be made.
Merci beaucoup.
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
I just tried it and it doesn't work correctly. It adds another amount below the current temperature instead of increasing the font size.
What am I doing wrong?
Merci.
What am I doing wrong?
Merci.
- MonyMony
- Forecaster
- Posts: 187
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Re: Font size - Block “current"
I have modified the font size of the label on this block (see www.cecilweather.com). In my case, I changed the value in line 317 for font-size:
Other font sizes are in the style area of the code should you wish to make changes beyond what I did. To help, I am attaching my copy of the current block.php for you to do a comparison with. I hope it helps!
Code: Select all
.currentLabel{
font-size:0.6em;
font-variant: small-caps;
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
Thank you very much.
I will try it.
I will try it.
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
I have tried that file modification with different "font-size" and it does not work.
Tried in Chrome, Edge and Mozilla, with no result in increasing the size.
I'm stumped.
But, thanks for your interest.
Tried in Chrome, Edge and Mozilla, with no result in increasing the size.
I'm stumped.
But, thanks for your interest.
-
- Observer
- Posts: 43
- Joined: Tue Mar 26, 2019 10:38 pm
- Location: Asheville, NC
- Station model: Davis Vantage Pro2
- Software: Weather Display
- Contact:
Re: Font size - Block “current"
I've had the same lack of success.
- lemimi
- Advisor
- Posts: 99
- Joined: Wed Dec 12, 2018 3:31 pm
- Location: France - Normandie
- Station model: Brandson 304557
- Contact:
Re: Font size - Block “current"
Hello,
Here is what I get on my web page: https://lemimi.fr/template/indexDesktop.php
If you are interested, the file can be downloaded here: http://lemimi.fr/chargements/template/currentBlock.zip
Good luck... Michel
Here is what I get on my web page: https://lemimi.fr/template/indexDesktop.php
If you are interested, the file can be downloaded here: http://lemimi.fr/chargements/template/currentBlock.zip
Good luck... Michel
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
Thank you very much.
Downloaded, I will try it.
Downloaded, I will try it.
-
- Forecaster
- Posts: 103
- Joined: Wed Sep 11, 2019 3:56 pm
- Location: Derio - Bizkaia - Spain
- Station model: Ecowitt - Netatmo
Re: Font size - Block “current"
Tested and works.
Thank you all for your help.
Thank you all for your help.