remove Menu image icons?

remove Menu image icons?

av Daniel Hirata -
Antal svar: 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
Genomsnitt av betyg: -
Som svar till Daniel Hirata

Re: remove Menu image icons?

av Joseph Rézeau -
Bild på Core developers Bild på Particularly helpful Moodlers Bild på Plugin developers Bild på Testers Bild på 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
Som svar till Joseph Rézeau

Re: remove Menu image icons?

av 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
Som svar till Daniel Hirata

Re: remove Menu image icons?

av 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.
Som svar till Daniel Hirata

Re: remove Menu image icons?

av 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