Icons in menu items

Professional social WordPress theme with metro design, fully-adjustable grid widget and BuddyPress support.
GK User
Tue May 12, 2015 1:18 am
I'd like to replace some menu items with icons. Where should I look and how should I go about it?

For example: On the Author page:
ACTIVITY
PROFILE
NOTIFICATIONS
MESSAGES
FRIENDS
GROUPS
FORUMS
SEND INVITES
MEDIA
SETTINGS

and/or

PERSONAL
MENTIONS
FAVORITES
FRIENDS
GROUPS

Thanks!
User avatar
Fresh Boarder

GK User
Tue May 12, 2015 9:33 am
Hi,

You have to use Firebug or Google Dev tools to inspect these elements and find id of your menu items, i.e. for the Activity you can use this code:
Code: Select all
#buddypress div.item-list-tabs ul #activity-personal-li {
   background: ...
   text-indent: -999px;
}


text-indent for hiding the text, and you can add background to this menu item.

You can also use pseudelements :before to add your FontAwesome or other icons, more information may be found here:
https://www.gavick.com/blog/add-use-font-awesome-icons
User avatar
Moderator


cron