fontawesome icons in Custom menu in default boost theme?

fontawesome icons in Custom menu in default boost theme?

by Animal the muppet -
Number of replies: 6

How do you get font awesome icons in Custom menu?

I'm really posting to see if something is new with my fresh install as I've tried all sorts of code and nothing is working sad Thanks in advance!

Average of ratings: Useful (1)
In reply to Animal the muppet

Re: fontawesome icons in Custom menu in default boost theme?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moving to Themes forum...

In reply to Animal the muppet

Re: fontawesome icons in Custom menu in default boost theme?

by Chris Chapman -

Same here! although not in custom menus, mine are user menus and course admin menu. see my post from last week here... no response as of yet...

https://moodle.org/mod/forum/discuss.php?d=373913

In reply to Chris Chapman

Re: fontawesome icons in Custom menu in default boost theme?

by Animal the muppet -

I've resorted to using the essential theme but I'm having trouble with the custom code


Something like this use to work and now doesnt


dropdown a[title="menu parent"]:before{content:"\f015"; font-family: FontAwesome;  margin-right: .5em;}

ul.dropdown-menu a[title=“child option“]:before{content:"\f015"; font-family: FontAwesome;  margin-right: .5em;}

In reply to Animal the muppet

Re: fontawesome icons in Custom menu in default boost theme?

by Bas Brands -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers

Hi mr the muppet smile

Have you checked the full css selector is still valid?

In boost the navbar has changed because of changes in bootstrap 4. It might be a nice idea to have Moodle core support using fa icons in the custom menu just like the user menu does. If you would like to put some work into this feel free to open a Moodle Tracker issue for this.


Average of ratings: Useful (1)
In reply to Bas Brands

Re: fontawesome icons in Custom menu in default boost theme?

by Chris Chapman -

Hi Bas, 

See my thread, Kathrin has raised this already it seems.

https://tracker.moodle.org/browse/MDL-61573 

https://moodle.org/mod/forum/discuss.php?d=373913#p1508708 


In reply to Chris Chapman

Re: fontawesome icons in Custom menu in default boost theme?

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok if MDL-61573 solves the problem that it states then Essential will work with it.  However it won't as the patch is still calling 'resolve_image_location' which does nothing to call the font icon system.  And in any event the issue is an improvement so won't be until M3.6 at the earliest.