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.
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
Hi Mike,
Thank you very much. That worked well!
Another question. Hoe can align them so it will become like this:
I tried several things, but it didn’t work.
Wauw Mike! Thank you. You can close this ticket.
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