remove Menu image icons?

remove Menu image icons?

by Daniel Hirata -
Number of replies: 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
Average of ratings: -
In reply to Daniel Hirata

Re: remove Menu image icons?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of 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
In reply to Joseph Rézeau

Re: remove Menu image icons?

by 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
In reply to Daniel Hirata

Re: remove Menu image icons?

by 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.
In reply to Daniel Hirata

Re: remove Menu image icons?

by 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