Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
~515 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Jul
15
answered How to add an <img> tag when a menu item is a dropdown(or has a sub-menu)
Jul
15
awarded  Supporter
Jul
15
comment How to add an <img> tag when a menu item is a dropdown(or has a sub-menu)
@Milo yeah that looks like what I'm after but can you help me a bit here? obviously "if ( $args->has_children ) { // ... }" is where I should add my img tags but I really don't know how to do that. would it work if I wrote $after='<img src="" />' in there?
Jul
14
comment How to add an <img> tag when a menu item is a dropdown(or has a sub-menu)
Actually I can't. There is no backward selectors in css. I can't target the <a> before the sub-menu, and there is no differentiating class for the ones with a sub-menu in it. And I can't give that image to the sub-menu because of my "overflow:none"s.
Jul
14
asked How to add an <img> tag when a menu item is a dropdown(or has a sub-menu)