Solved: 6 Years, 4 Months, 3 Weeks ago Adding toplinks with icons on the new version of mybb?
#1
Solved: 6 Years, 4 Months, 3 Weeks ago
Hello,

I have a quick question about adding toplinks.

I know how to add the toplinks, but when I added a toplink "Team" then the toplink got the search.gif icon automatic.. Don't know how to change that icon to another one?

http://imgur.com/Xiw9mNk
Reply
#2
Solved: 6 Years, 4 Months, 3 Weeks ago
Add a class in global css :
#logo ul.top_links a.team {
    background-position: 0 -20px;
}

This uses the "memberlist" icon.

Or if you want your own icon, something like:
#logo ul.top_links a.team {
 background-url(images/team.gif);
 background-repeat:no-repeat;
 display:inline-block;
 padding-left:20px;
}
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#3
Solved: 6 Years, 4 Months, 3 Weeks ago
Hey Crazycat.

I have now added this code to global.css but nothing happens.
The icon is still the search.gif
Reply
#4
Solved: 6 Years, 4 Months, 3 Weeks ago
What is your forum url ?
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#5
Solved: 6 Years, 4 Months, 3 Weeks ago
www.smurfierp.com
Reply
#6
Solved: 6 Years, 4 Months, 3 Weeks ago
hum, add a class="team" to your link.
and you have 2 "#logo ul.top_links a.team" entries in your CSS.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply
#7
Solved: 6 Years, 4 Months, 3 Weeks ago
Hi crazycat (or anyone else who is around.)

I'm trying to change my toplinks imagery as well. The first 3 links go to an external website 'Home,' 'Calendar', 'News'. Followed the above instructions but they're still showing the search icon. This is my address shennyhq.co.uk/dir

Any ideas? Thanks.
Reply
#8
Solved: 6 Years, 4 Months, 3 Weeks ago
^ you have to hard refresh your browser (eg. press CTRL + F5) to see the style changes
Reply
#9
Solved: 6 Years, 4 Months, 3 Weeks ago
Ahh yes!!! sorry about that. Just need to work out the spacing as its a bit weird looking right now. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)