Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1374079

    Hi guys,

    In the top-bar of my site there is an Enfold Secondary menu. What I would like to do is to add a small icon before each item. Like this:

    (ICON) +31 26 445 13 02 (ICON) (Email address hidden if logged out) (ICON) Blog

    These wil be icons which I designed myself in Illustrator. How can I achieve this?

    Thanks in advance.

    #1374086

    Hey dennisnoharemanon,
    Thanks for the link to your site, I recommend saving your icons as image files such as png or jpg and then use CSS to add the images, here is an example of what it would look like.

    #header_meta .sub_menu #menu-item-2545:before {
      content: url(/blog.png);
      display: inline-block;
      padding-right: 10px;
      height: 10px;
      width: 10px;
    }
    #header_meta .sub_menu #menu-item-2546:before {
      content: url(/mail.png);
      display: inline-block;
      padding-right: 10px;
      height: 10px;
      width: 10px;
    }
    #header_meta .sub_menu #menu-item-2547:before {
      content: url(/phone.png);
      display: inline-block;
      padding-right: 10px;
      height: 10px;
      width: 10px;
    }
    

    Please give this a try and let us know if you have any trouble.

    Best regards,
    Mike

    #1374740

    Hi Mike,

    Thank you very much. That worked well!

    Another question. Hoe can align them so it will become like this:

    Screenshot

    I tried several things, but it didn’t work.

    #1374767

    Hi,
    Thanks for the feedback, try adding this css:

    #header_meta .sub_menu #avia2-menu li {
      display: flex;
      align-items: center;
    }

    After applying the css, please clear your browser cache and check.
    My test results:
    2022-12-02_001.jpeg

    Best regards,
    Mike

    #1375110

    Wauw Mike! Thank you. You can close this ticket.

    #1375112

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How can I add icons to Enfold Secondary Menu items?’ is closed to new replies.