How are these icons set?
icons.PNG
IIRC the 'icon' reference in the big array in Admin.php drives some CSS to point to the image to use.
Was hoping I can override and set an icon somehow. Or do I have to do css?
Think you'll need to do CSS :(
Thanks ok will look into it.
You need to add something like
.large_admin_menu_icon.<item-class>::before {
background-image: url('...') no-repeat;
}
Thanks do you advise just added it to html_headers instead of modifying the css file?
Quote from: vbgamer45 on September 21, 2021, 04:05:33 PMThanks do you advise just added it to html_headers instead of modifying the css file?
I advise not to touch any core file anymore... either hook your custom adminCSS via file or headers directly... While I don't have much knowledge in minimized content, i think @albertlast made it work with all files so you can hook your custom admin related CSS and minimization can put them togather so you no longer load many many files...
loadCSSFile is your friend I guess :)
Yeah was just debating if that was the best way if I create a single css file for each mod that has admin area. Or just override via a <style> tag.
Style tag seems less work.
Yea if it's just for the icon that's probably alright
Some of them you could just use one of the default icons too, e.g. ad seller could prob use the money icon
Hmm yeah got idea about the default icons.