caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

Generate sub-items for item with an image #39

Closed myrrc closed 9 years ago

myrrc commented 9 years ago

Hello. I generate the item which contains only tag. Is there a possibility to add subitems for such? 2015-05-25 23-30-46

kaidesu commented 9 years ago

It'd be better to simply assign that menu item a class, where in your CSS you would set the color to transparent and assign your background image. This way you're not hardcoding HTML within your menu instance.

Otherwise, every item is assigned a unique ID number on top of the slug. You can dd your $menu instance and see what ID that menu item is being assigned.

Read more here: https://github.com/caffeinated/menus/wiki/Basics-of-Menu-Items

myrrc commented 9 years ago

Thanks