View Full Version : Add icons to the navigation bar!
Asama
02-22-2015, 01:56 PM
Hello guys,
I wanna add some icons (let's call them status icons) to the main navigation bar
of my forums like for the BLOG tab I would like to add a pencil icon and for FORUMS tab I would like to add a chat icon and so on (I wanna use these icons from ionicons.com).
Can anybody help me with that please?
Here's my website: https://www.xtreme-developing.com/forum
Thanks in advance!
Spangle
02-22-2015, 08:22 PM
That link returns a server error
Asama
02-26-2015, 11:50 AM
sorry link updated
Asama
03-03-2015, 10:58 AM
Any Update?
Replicant
03-03-2015, 11:47 AM
Those icons are fonts. You will need to install the fontpack first to use them or extract the images from the fontpack and manipulate the size with CSS.
You can then use the CSS to add the icon in font notation \f212 or as an image url("path to image") before the text that is currently in the tab using content on the unique css selector for each tab.
http://www.w3.org/wiki/CSS/Properties/content
Asama
03-05-2015, 01:08 PM
Okay I already have installed these icon fonts but i don't know how to add them to every tab like for the NEWS tab which is a link to my wordpress and the home of my website and for PHONES tab because my website is about Android devices....
Do i have to add in css_additional.css simply:
.news {
content: /f221;
}
.phones {
content: /f004;
}
??
Can i add these icons with just html?
Thanks for answers.
Replicant
03-06-2015, 01:46 AM
This is for the first tab, change f code to whatever icon you want. Increment the 2 in parenthesis by 1 for each tab. You need a line like this for each tab.
#channel-tabbar > ul > li:nth-child(2) > a:before {content: "\f221";}
Keep in mind that with this code, if you have tabs that are only visible to logged in users, those tabs will need to be after the visible to guest tabs or it won't work. This is because we don't have a unique identifier for each tab, so we are selecting them in numerical sequence.
rafail
09-01-2015, 04:52 PM
That code works fine on chrome, but on firefox and on internet explorer icons are not showing.
here is the code on my global css:
#channel-tabbar ul li:nth-child(2) a{
content: url("/images/navbar_forum.png");
}
#channel-tabbar ul li:nth-child(3) a{
content: url("/images/navbar_articles.png");
}
any help to make it show images on ie and firefox?
Lynne
09-01-2015, 06:48 PM
Can we get a link to see this? The URL in the first post gives a 404 Not Found.
rafail
09-02-2015, 04:47 PM
http://ello.net.co
But nevermind i moved icons to another place (below site logo) so i not need these icons anymore on navigation bar. I will leave them for one day so you can see the problem just for knowing.
Lynne
09-02-2015, 08:46 PM
I actually see the icons just fine in both Chrome and Firefox (I'm on a Mac, so I don't have IE), so I'm not sure what the issue would be.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.