[Support request] Add image to each item in mobile menu

Home Forums Support [Support request] Add image to each item in mobile menu

Home Forums Support Add image to each item in mobile menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1580612
    ken

    Hi there,

    I am wondering if you could help me out with inserting icons on the mobile menu only. Currently the dropdown menu has the same text as the desktop display, what I want is to add an icon left of the text.

    Thanks!

    #1580761
    Leo
    Staff
    Customer Support

    Hi there,

    If I understand you request correctly, you can follow the steps here:
    https://docs.generatepress.com/article/adding-icons-to-menu-items/

    And for the icon HTML part, add a hide-on-desktop class like this:
    <i class="fas fa-home hide-on-desktop" aria-hidden="true"></i>

    Let me know if this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.