I have a menu on my main page Road Conditions
I created icons for the menu items WyDot and MtDot.
I want to display a larger image of these icons as these are almost too small to see.
I have tried changing the image size of the .png files. Regardless of the physical size the image, it still displays as this size image. I'm guessing that there is a defined size of menu icons but can't find it.
Any ideas?
Custom Icon Size
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Custom Icon Size
Hi,
you could change it in menu.php, but the problem is that it will then not scale nicely. If the custom icons are larger, then you would have irregular gaps between menu items
you could change it in menu.php, but the problem is that it will then not scale nicely. If the custom icons are larger, then you would have irregular gaps between menu items
- WyoDog
- Advisor

- Posts: 67
- Joined: Wed Aug 23, 2017 6:39 pm
- Location: Powell, WY USA
- Station model: Davis Pro2
- Software: Weather Display
- Contact:
Re: Custom Icon Size
Got it,
Any ideas about how I can increase the size of just these two .png? Perhaps another file type?
Thank you, Jachym
Any ideas about how I can increase the size of just these two .png? Perhaps another file type?
Thank you, Jachym
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Custom Icon Size
It is here:
$thisLinkIcon = '<img src="'.$thisLinkIcon.'" style="width:25px;max-height:25px;" class="menuItemIcon">';
in menu.php, but make sure you never update the menu, it would revert your changes. Also keep in mind that you will have irregular gaps between menu items if the icons are smaller than the image icons
$thisLinkIcon = '<img src="'.$thisLinkIcon.'" style="width:25px;max-height:25px;" class="menuItemIcon">';
in menu.php, but make sure you never update the menu, it would revert your changes. Also keep in mind that you will have irregular gaps between menu items if the icons are smaller than the image icons