Tagged: bug, classes, CSS, mega menu, mobile menu
-
AuthorPosts
-
January 11, 2018 at 10:27 am #896073
Hi there,
I would like to hide all items in a mega menu on mobile view, where the description is used to create a text block.
Background: The menu is very complex and the menu items with images shall only be displayed on desktop view.The code doesn’t make a difference between standard link items and content items.
As alternative I tried adding an extra class to those text block items, which shall not be displayed in the mobile menu. Obviously the class is not added to the element. It still shows up like:
<li class=”menu-item-12345″> …
instead of
>li class=”menu-item-12345 hide”> …It would be excellent, if in the upcoming release you are able to manage to add a class by default to such items.
Sidenote: Please compare the desktop mega menu item with the mobile mega menu item. The code added to a text block consists of a image and an h3 tag, which both are surrounded by an a-href. The h3 is stripped at the mobile mega menu item, only the image is kept.
- This topic was modified 6 years, 10 months ago by mailworm.
January 12, 2018 at 5:34 am #896420Hey mailworm,
We are aware of the problem and we’re very sorry about it, it should be fixed in the next release of the theme though.
Best regards,
RikardJanuary 12, 2018 at 8:32 am #896459Ok thanks,
can you please let output a generic class in all mega menu text blocks in mobile as well? This would save lots of time for complex mega menus, where the text blocks shall not appear in mobile view.
Thanks.
January 12, 2018 at 1:17 pm #896573Hi,
Thanks for the feedback, I’ll check with the developer. I’m guessing it shouldn’t be all that difficult to implement.
Best regards,
RikardJanuary 12, 2018 at 1:47 pm #896580Hi again,
We have a ticket for this in our internal development now, so it should hopefully be included in the next release :-)
Regards,
RikardJanuary 12, 2018 at 1:54 pm #896583Lovely! Thank you!
P.S.: Enfold & Kriesi are my fav theme / theme dev for years now! Keep up the good work!
January 13, 2018 at 6:20 am #896849Hi,
Thanks for the kind words, we should hopefully get your wishes into the next release of the theme :-)
Best regards,
RikardJanuary 17, 2018 at 2:21 am #898258Just ran into this as well. CSS Class on a menu links (from Appearance>Menus) is not applied.
January 18, 2018 at 9:45 am #898948 -
AuthorPosts
- You must be logged in to reply to this topic.