remove Menu image icons?

remove Menu image icons?

von Daniel Hirata -
Anzahl Antworten: 4
Hi,

i just wanted to know if there is any possibility to remove these little image icons in the main menu and course menu?

To disable the images works, but then there is always an unfillable white space where the icons were before. Is there a better method to remove these icons?

thanks

knuesel
Mittelwert:  -
Als Antwort auf Daniel Hirata

Re: remove Menu image icons?

von Joseph Rézeau -
Nutzerbild von Core developers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von Testers Nutzerbild von Translators
Hi Daniel,
You do not say which method you actually use to "disable the images".
The display: none; CSS parameter should work without leaving blank space.
Joseph
Als Antwort auf Joseph Rézeau

Re: remove Menu image icons?

von Daniel Hirata -
Hi Joseph, thanks for the fast reply,

well, it doesn't at my moodle. :/

Here's what i mean:



Please ignore the orange dots, they should be there. The arrow marks the white space where there shouldn't be any.

i wrote:

#inst3.c0 {
width: 0px;
color:green;
}

Was this wrong?

daniel
Als Antwort auf Daniel Hirata

Re: remove Menu image icons?

von Patrick Malley -
Here is what I used to disable the images and the column from appearing all together.
#left-column .sideblock li .icon img,
#left-column .sideblock .list .c0 {
  display:none;
}
You may want to try:
.block_course_list .sideblock li icon .c0,
.block_site_main .sideblock li icon .c0 {
  display:none;
}
I think what you are doing is only reducing the width of one instance of the block you want to change.
Als Antwort auf Daniel Hirata

Re: remove Menu image icons?

von James Ballard -
Hi

We did this for the course list block by commenting out the 3 instances of

$this->content->icons[]=$icon;

found in block/course_list/block_course_list.php.

It means changing the core code so it would depend on your policy for customisations.

Yours
James