Change mt-icon in a block

Post Reply
User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Change mt-icon in a block

Post by tobydude » Thu Mar 31, 2022 6:43 pm

Hi.
How do I change a image (mt-icon) in a block and make my own image? (.png or .jpg)

I want to change: see image.
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: Change mt-icon in a block

Post by Jolumarali » Thu Mar 31, 2022 8:12 pm

607 <img src="homepage/blocks/rain/icons/<?php echo $theme?>/rain.png" style="width:70px">

you created an icons/light and dark folder with your image
and modify this line 607 in rainBlock.php
good installation
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

User avatar
tobydude
Forecaster
Forecaster
Posts: 192
Joined: Sun Jan 07, 2018 6:43 pm
Location: Norway
Station model: Netatmo
Software: Weatherdiaplay
Contact:

Re: Change mt-icon in a block

Post by tobydude » Fri Apr 01, 2022 5:14 am

Thanks Jolumarali.
That was great.
:)
Last edited by tobydude on Sat Apr 02, 2022 1:57 pm, edited 2 times in total.

Post Reply