remove Menu image icons?

remove Menu image icons?

par Daniel Hirata,
Nombre de réponses : 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
Moyenne des évaluations: -
En réponse à Daniel Hirata

Re: remove Menu image icons?

par Joseph Rézeau,
Avatar Core developers Avatar Particularly helpful Moodlers Avatar Plugin developers Avatar Testers Avatar 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
En réponse à Joseph Rézeau

Re: remove Menu image icons?

par 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
En réponse à Daniel Hirata

Re: remove Menu image icons?

par 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.
En réponse à Daniel Hirata

Re: remove Menu image icons?

par 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