MyBB Community Forums

Full Version: Adding a link to the Navigation Bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey again myBB!

Ok, so i tried my hand at adding a Home and Games Section Link using this:

<a href="{$mybb->settings['bburl']}/games.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/icons/icon.png" alt="" title="" />Games Section</a>

But this has happened!

[Image: error2r.png]

Is there anyway i can 'seperate' the image from the words like the original icons? I was looking at the original icons code:

<a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></span>

And i was just wondering where the image link is in there, because i dont see it!

Thanks.
The Afresh/Apart themes do it differently. You need to make a CSS class in global.css, and put the URL to the image in there. Have a look at how the other classes for toplinks are done in this theme to see what to do.
I thought you may have said that, i have included this:


.upper_panel a.Games Section {
background: url(images/flame/icons/icon.gif) no-repeat;
}

.upper_panel a.search {
background: url(images/flame/icons/search.gif) no-repeat;
}

but to no avail.

Thanks for the response

Copy one of the other toplnks, it should say class="search" for one of then, change that to gamesection and then in the CSS there change the name to .upper_panel a.gamesection